Skip to content

Commit

Permalink
fix native auth with web wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
juliancwirko committed May 23, 2023
1 parent 88cb960 commit bb15eb4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### [0.10.1](https://github.com/juliancwirko/elven.js/releases/tag/v0.10.1) (2023-05-23)
- fix native auth when used with web wallet provider

### [0.10.0](https://github.com/juliancwirko/elven.js/releases/tag/v0.10.0) (2023-05-23)
- **Breaking** switch to using `sdk-native-auth-client` instead passing string-based login tokens, there is no fallback or other option, so it is a breaking change. Native Auth is recommended. The old way of doing that will be deprecated. Please freeze the previous version if you are not ready to switch yet

Expand Down
2 changes: 1 addition & 1 deletion build/elven.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/elven.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elven.js",
"version": "0.10.0",
"version": "0.10.1",
"description": "Authenticate, sign and send transactions on the MultiversX blockchain in the browser.",
"type": "module",
"module": "build/elven.js",
Expand Down
4 changes: 2 additions & 2 deletions src/auth/init-web-wallet-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ export const initWebWalletProvider = async (
`${webWalletAddress}${DAPP_INIT_ROUTE}`
);

if (signature && apiUrl && lsAddress) {
if (signature && apiUrl && urlAddress) {
const nativeAuthClient = new NativeAuthClient({
apiUrl,
});
const accessToken = nativeAuthClient.getToken(
lsAddress,
urlAddress,
loginToken,
signature
);
Expand Down

0 comments on commit bb15eb4

Please sign in to comment.