Relative Content

Tag Archive for javascriptmongodbnext.js13next-auth

Issue with NextAuth.js: User object is not being returned in the session

I’m developing a web application using Next.js and NextAuth.js. I have set up authentication using the credentials provider (email and password) and JWT for sessions. Although the authentication seems to work correctly, I’m not receiving the user object in the session. Even though the jwt callback seems to be working and the tokens contain the correct information, the session callback does not seem to be returning the user object.