#Automatically Login after a user has signed

2 messages · Page 1 of 1 (latest)

void sorrel
#

Since NextAuth does not have a signup flow with the credentials flow, I decided to create my own; The whole form process the signup flow correctly but after the correct creation of the user, it should also login him to the site without having to ask the credentials again (something automatic)
I tried looking at this post and at this discussion too, to no avail really

So the question is, how can I programmatically login the user after his very signup process?

(I'll post the code below, since I have discord text limitation xd)

GitHub

How to setup registration for next-auth credential ( Email + password ) provider? everything I found on the web are just Sign In tutorials, there is totally nothing about that in the next-auth docu...

inland palmBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)