Skip to content

Commit

Permalink
Add expiration time limit (#1413)
Browse files Browse the repository at this point in the history
Adds a 15 minute limit for the validity period of JWT tokens. (It is currently hardcoded, but will eventually be injected.):

- Change the `SiweMessageSchema` to a function that accepts a validity period.
- Pass a value to `getSiweMessageSchema` in `VerifyAuthMessageDto`.
- Add test case, as well as update existing tests.
  • Loading branch information
iamacook authored Apr 19, 2024
1 parent 8ff0850 commit 618689c
Show file tree
Hide file tree
Showing 5 changed files with 393 additions and 130 deletions.
Loading

0 comments on commit 618689c

Please sign in to comment.