Next.js Discord

Discord Forum

Updating next-auth to authjs

Unanswered
Naeemgg posted this in #help-forum
Open in Discord
Previously on signIn function we used to get a response status which was used to handle the error or success messages client side but in latest authjs it's not returning anything how do we supposed to handle the success and errors?

8 Replies

And also previously we used useSession hook to get the sessions in client components
For that we needed to wrap the whole layout with SessionProvider
I'm a bit confused whether it'd be good practice or not to do that with authjs
.
.
Dwarf Hotot
So problem is authjs is not returning any thing
Asian black bear
hello, did you solve this problem ?