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)
Stack Overflow
How the registration is handled with a custom credential provider ( email + password)?
Currently my [...nextauth].js looks like this:
import NextAuth from 'next-auth'
import Providers from 'next-auth/