Skip to content

Commit

Permalink
v2.20.5 (#925)
Browse files Browse the repository at this point in the history
* fix refresh token signature (#924)

* 2.20.5

* changelog
  • Loading branch information
andreigiura authored Sep 15, 2023
1 parent a92b792 commit c668657
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 99 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [[v2.20.5]](https://github.com/multiversx/mx-sdk-dapp/pull/925)] - 2023-09-14
- [Fix refreshNativeAuthTokenLogin signature](https://github.com/multiversx/mx-sdk-dapp/pull/924)

## [[v2.20.4]](https://github.com/multiversx/mx-sdk-dapp/pull/923)] - 2023-09-14
- [Fix custom transaction information overrides - missing properties on 'signed' state transition](https://github.com/multiversx/mx-sdk-dapp/pull/922)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiversx/sdk-dapp",
"version": "2.20.4",
"version": "2.20.5",
"description": "A library to hold the main logic for a dapp on the MultiversX blockchain",
"author": "MultiversX",
"license": "GPL-3.0-or-later",
Expand Down
6 changes: 3 additions & 3 deletions src/hooks/login/useLoginService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ export const useLoginService = (config?: OnProviderLoginType['nativeAuth']) => {
}
const messageToSign = new SignableMessage({
address: new Address(address),
message: Buffer.from(loginToken)
message: Buffer.from(`${address}${loginToken}{}`)
});
const signature = await signMessageCallback(messageToSign, {});
const signedMessage = await signMessageCallback(messageToSign, {});
setTokenLoginInfo({
address,
signature: (signature.toJSON() as any).signature
signature: signedMessage.getSignature().toString('hex')
});
};

Expand Down
Loading

0 comments on commit c668657

Please sign in to comment.