Skip to content

Commit

Permalink
implement native auth
Browse files Browse the repository at this point in the history
  • Loading branch information
juliancwirko committed May 28, 2023
1 parent 4d71ed3 commit 6817cc1
Show file tree
Hide file tree
Showing 5 changed files with 574 additions and 449 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### [7.0.0](https://github.com/ElvenTools/elven-tools-dapp/releases/tag/v7.0.0) (2023-05-28)
- **Breaking:** The dapp now uses the useElven version with built-in native token support. There is no fallback, so it is a breaking change. Standard string-based tokens will be deprecated across the MultiversX soon
- update dependencies

### [6.2.1](https://github.com/ElvenTools/elven-tools-dapp/releases/tag/v6.2.1) (2023-05-14)
- update [useElven](https://www.useelven.com/)
- fix problems with initialization of the HW provider
Expand Down
4 changes: 2 additions & 2 deletions components/core/LedgerAccountsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ export const LedgerAccountsList: FC<LedgerAccountsListProps> = ({
</Box>
{loginToken && (
<Box mt={3}>
<Box fontWeight="bold">Auth token:</Box> {loginToken}
{'{}'}
<Box fontWeight="bold" textAlign="center">Login token:</Box>
<Box wordBreak="break-word">{loginToken}</Box>
</Box>
)}
</Flex>
Expand Down
4 changes: 1 addition & 3 deletions components/core/LoginComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { ActionButton } from '../ActionButton';
import { LedgerAccountsList } from './LedgerAccountsList';

export const LoginComponent = memo(() => {
// If you need the auth signature and token pas your unique token in useLogin
// For the demo purposes here is a dummy token
const {
login,
isLoggedIn,
Expand All @@ -20,7 +18,7 @@ export const LoginComponent = memo(() => {
walletConnectPairings,
walletConnectPairingLogin,
walletConnectRemovePairing,
} = useLogin({ token: 'token_just_for_testing_purposes' });
} = useLogin();

const [loginMethod, setLoginMethod] = useState<LoginMethodsEnum>();

Expand Down
Loading

0 comments on commit 6817cc1

Please sign in to comment.