NextAuth JWT
Unanswered
Minskin posted this in #help-forum
MinskinOP
How does next auth, when i use the credentials provider know what attribute to use for the token in my response? How can i set the access and refresh token correctly?
3 Replies
Northeast Congo Lion
Next auth credentials has a jwt callback I believe
You can modify what’s in the token, payload wise but unsure if you can actually deliver a different token
MinskinOP
was kind of able to trick around it, by returning the tokens in the user model aswall in the credentials, then in the jwt callback i receive both and can attach it to the token