I think I might be the first one ever to use next-auth, tRPC, and SIWE all together. Which is... not easy so far =/
Ok who is willing to explain auth stuff to me plz? Next-auth, SIWE, JWTs, saving sessions to a db, etc
Feel your pain man. Been using this stack coupled with Lit Protocol for auth and it can be overwhelming.
There’s a tutorial of siwe with next auth. Get something basic set up. Once the basic apis are working you can add trpc on top.
if building on aws, congitio is prefect for this, theres a way to make it compatible with SIWE. Benefits are you can add JWT sessions, permissions, email and MFA. Then you can also use dynamodb.