DEV Community

Discussion on: Authentication with credentials using Next-Auth and MongoDB - Part 1

Collapse
 
sonamshrish profile image
sonam-shrish

Hi, how can I encode more information in the cookies while signing in. In the above example you've shown, to encode email only(i.e. return {email: result.email}). How can
I for example save user address in cookies? I've tried (return { email: result.email, address: result.address}, but that didn't work.