next-auth credential registration flow #2282
Replies: 3 comments 6 replies
-
In that case, the One caveat using the Credentials flow though, that these users won't be saved in a database, as we generally discourage this username+password flow. |
Beta Was this translation helpful? Give feedback.
-
Hey, i don't know if this is relevant and if it answers the question but i am asking myself if what i did is ok to do or not:
something like this : |
Beta Was this translation helpful? Give feedback.
-
I did in this way:
For more info check: https://next-auth.js.org/providers/credentials#multiple-providers |
Beta Was this translation helpful? Give feedback.
-
Hi, am new to
next-auth
,How does the
credential
(username + password
)registration
flow looks like?this is my normal flow without react:
input
username + email + password
>submit form
>[api] create user in database
>create successful
>login user
>return success json response
with
next-auth
, I know I cansign in
withsignIn('credentials', { .... });
and theaccess token
will be stored insession
etc all done withinsignIn()
is there another
register()
function that I can use forregistration
?Beta Was this translation helpful? Give feedback.
All reactions