#Session not saving user
1 messages · Page 1 of 1 (latest)
Hi @lament valley. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Mmm nope, where should I add those?
Sorry @lament valley, I seem to be having a bit of trouble. Don't worry though, I've pinged my supprt and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
that JWT callback
and a secreat of JWT which is random 64 bit phrase
Got it, let my implement that, I was also reading it here: https://next-auth.js.org/configuration/callbacks#jwt-callback
Thanks for the screenshots!
Callbacks are asynchronous functions you can use to control what happens when an action is performed.
I already have a NEXTAUTH_SECRET configured, do I need that JWT_SECRET separately also?
Session not saving user
@still briar can you show me how you implement your signIn method with Credentials?
ignroe that first line : new Error (Error)
basically im checking the user is in db or not
Got it, that's useful.
What about your signIn method in your sign in form, the one that triggers after you hit the Log In button, how do you send the data and resolve the Promises?
I think I may not be doing it properly