How to?: Sign In With Ethereum and have a user record created?
I have an application running and just got Sign In With Ethereum 'working' with nextauth/drizzle orm adapter/planetscale, but nothing is stored in the database user records. When i log in with different oauth providers (discord) i get new records added.
Should this be creating new records in my database by default, or is the nextjs discord provider coded to do that, and I need to write that programming in the authorize callback to handle it?
Here is my nextauth auth.ts file:
2 Replies
If i do need to code in my own logic, would it look something like this, and should i go through a trpc route?:
I'm looking at doing something similar with the Farcaster sign in, and a little stumped in this spot as well - did you figure out a direction on this?