You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering a problem where the user object in NextAuth.js v5.0.0-beta.16 is missing certain user information within the jwt and session callbacks when using the Credentials provider. While the object contains essential fields like email, image, id, role, and contactNumber, other expected fields like firstname, lastname, function, and direction are absent. The user object passed to the jwt and session callbacks is undefined
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm encountering a problem where the user object in NextAuth.js v5.0.0-beta.16 is missing certain user information within the jwt and session callbacks when using the Credentials provider. While the object contains essential fields like email, image, id, role, and contactNumber, other expected fields like firstname, lastname, function, and direction are absent. The user object passed to the jwt and session callbacks is undefined
Code Snippets:
authConfig.ts:
auth.ts:
Beta Was this translation helpful? Give feedback.
All reactions