Problem with JWT callback with Strapi credentials #3440
Unanswered
pedrosantanna
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've working in a project with Next.js (11.1.2) + NextAuth (^4.0.5) + Strapi(3.6.8).
I'm using Next Auth credentials provider and it's working fine. But I need to access a few user information using
session
, so I tried to do this usingjwt
andsession
callbacks.When I log response from strapi inside
authorize()
, I receive{ jwt:{}, user:{} }
, so it's ok.But, in
jwt
callback, when I log token, i'm getting a bizarre obj{token:{token:{token:{...}}}
.I described this in details here: https://stackoverflow.com/questions/70340163/nextauth-jwt-callback-returning-object
Can somebody help me, please? :)
Beta Was this translation helpful? Give feedback.
All reactions