Unable to send desired data in session's user object in Next-Auth
Unanswered
Santhosh Prabhakaran posted this in #help-forum
I'm trying to send the set of custom session object to client side in Next-Auth's callbacks function. The code in
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.
app/api/auth/[...nextauth]/route.js looks likeIn 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.