Urgent.News

What's breaking now, across thousands of outlets.

More in Finance & Markets

Sign-In with Ethereum in Next.js 16: SIWE with viem, iron-session and a Replay-Proof Nonce (Tested)

Cross-posted from my blog. The original, with any updates, lives on fabwaseem.com . Sign-In with Ethereum (SIWE) lets a user log in by signing a plain-text message with their wallet, as defined in…

  • Implement SIWE in Next.js 16.4.3 using viem 2.57.11 and iron-session 9.0.1
  • Issue nonce, sign message with user's wallet, and verify server-side
  • Store nonce server-side, delete upon first use to prevent replay attacks

More from Tuesday 27 October →