Next.js Discord

Discord Forum

Email Sign Up in Next Auth

Unanswered
Carolina Dog posted this in #help-forum
Open in Discord
Carolina DogOP
How can I create a sign up feature with email and magic link (also with several additional data like username and full name on sign up) when using Next Auth? Because Next Auth only provides signIn and signOut. I'm wondering, how can I add the data only when the email is confirmed? Thanks.

8 Replies

I think it wo1uld be help ful to read the Next Auth documentation
Carolina DogOP
I have read it actually, i guess the point of nextauth is just authentication or authorization, which means to tell the credability of the user. So, we have to create a separate way to store/save the users data.
@Bashamega we can use a sb for that like mangoDB Firebase
Carolina DogOP
sb?
Sorry
I meant DB
If you need to store user data a database is your best option, and you can integrate next-auth with most database solutions out there. There's a list of available db adapters here: https://next-auth.js.org/adapters
You can also use it with ORMs like Prisma or Drizzle and offload the db operations to those libraries.