Next.js Discord

Discord Forum

Unable to send desired data in session's user object in Next-Auth

Unanswered
Santhosh Prabhakaran posted this in #help-forum
Open in Discord
I'm trying to send the set of custom session object to client side in Next-Auth's callbacks function. The code in app/api/auth/[...nextauth]/route.js looks like


In my client side, it returns only email and name in the session's user object. How to include the other fields in the session ? Any help on this would be appreciated.

0 Replies