Skip to content

Commit

Permalink
auth: expect account signature expiration time in verify payload
Browse files Browse the repository at this point in the history
  • Loading branch information
alecananian committed Jan 8, 2025
1 parent 34cf1d5 commit 5f751cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/small-cherries-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@treasure-dev/tdk-core": minor
---

Expect account signature expiration time in verify payload
5 changes: 2 additions & 3 deletions packages/core/src/connect/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export const generateAccountSignature = async ({
signature: await backendWalletAccount.signMessage({
message: JSON.stringify({
accountAddress: accountAddress.toLowerCase(),
// TODO: include expirationTime when partners can adopt it
// expirationTime,
expirationTime,
}),
}),
expirationTime,
Expand All @@ -51,7 +50,7 @@ export const verifyAccountSignature = async ({
hash: hashMessage(
JSON.stringify({
accountAddress: accountAddress.toLowerCase(),
// expirationTime,
expirationTime,
}),
),
signature,
Expand Down

0 comments on commit 5f751cb

Please sign in to comment.