Updating next-auth to authjs
Unanswered
Naeemgg posted this in #help-forum
NaeemggOP
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
NaeemggOP
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
NaeemggOP
.
NaeemggOP
.
Dwarf Hotot
So problem is authjs is not returning any thing
@Naeemgg 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?
Short mackerel
wrap the signin with try catch and return your own object
Asian black bear
hello, did you solve this problem ?