Commit 161aeb2
authored
Migrate to @signinwithethereum/siwe (#1074)
* chore: migrate @magic-ext/siwe to @signinwithethereum/siwe
Replace the legacy "siwe" dependency with "@signinwithethereum/siwe"@^4.1.0 for the @magic-ext/siwe package and update source imports accordingly. Updated packages/@magic-ext/siwe/package.json to use the new package and changed the SiweMessage import in src/index.ts. yarn.lock was regenerated to capture the new dependency resolution.
* Include issuedAt timestamp in SIWE message
Add an issuedAt field to the SIWE message payload set to the current time (new Date().toISOString()). This ensures generated SIWE messages include the issuance timestamp (per EIP-4361 expectations), aiding verification and time-based checks.1 parent 9cb2480 commit 161aeb2
3 files changed
Lines changed: 81 additions & 108 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments