NextAuth getServerSession return issue
Unanswered
bigviking posted this in #help-forum
I would like to return a custom object of values to my callback route after signing in using the NextAuth credentials provider. The current behaviour is that the authorize function only seems to return an object {user: { name: bob, email: bob@bob.com, image: undefined}} and I would like to modify that return. I want to return username, email, id and not image, for example.
I've created my custom user object and returned that back to the callback route (image) however the custom object doesn't return. The return object seems to always stay in the format above.
I've created my custom user object and returned that back to the callback route (image) however the custom object doesn't return. The return object seems to always stay in the format above.