[for next-auth: "^4.21.0" - unsure for future versions]
-- T3 + SIWE --
- yarn create t3-app
- maintain next to be "^13.2.6" [not strictly related to t3+SIWE]
- install @rainbow-me/rainbowkit >= 1.0.0 (doesn't work for ZERODEV yet, use 0.12.12)
- install @rainbow-me/rainbowkit-siwe-next-auth >= 0.2.0
- install "ethers": "^5.6.8",
- install "siwe": "^2.1.4",
- install "viem": "~0.3.19", (only for wagmi >= 1)
- install "wagmi": "^1.0.1" (doesn't work for ZERODEV yet, use 0.12.13)
- rmb add NEXTAUTH_SECRET in .env
- edit
server/auth.ts
according to https://github.com/codingwithmanny/t3-app-siwe/tree/fix/next-auth-4.21.1 - edit
pages/api/auth/[...nextauth].ts
according to https://github.com/codingwithmanny/t3-app-siwe/tree/fix/next-auth-4.21.1 - edit
_app.tsx
andindex.tsx
as usual
-- ZERODEV --
- install @zerodevapp/wagmi latest
- edit
_app.tsx
as usual - add
transpilePackages: ["@zerodevapp", "@web3"],
tonext.config.mjs
- add
provider
tosiwe.verify
inserver/auth.ts
- check test/force signing