How do I control what is stored in session.user ? #2474
-
Question 💬How do I specify what is stored in session.user after login ? But when logging the session variable the user object contains email, image and name which only name is correct. email and image is null. How do I add username to the session.user so that I can use this later in my code ?
How to reproduce ☕️https://codesandbox.io/s/solitary-monad-myfg2 Contributing 🙌🏽No, I am afraid I cannot help regarding this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Using the jwt and session callbacks https://next-auth.js.org/configuration/callbacks |
Beta Was this translation helpful? Give feedback.
Using the jwt and session callbacks https://next-auth.js.org/configuration/callbacks