Relative Content

Tag Archive for reactjsauthenticationnext.jsnext.js13next-auth

How to make extra data available to session in next-auth

we are doing the auth on our website using next-auth. When the user is logged in, we receive the access token and the expiration date. Then, according to our BE model, we need to make other calls to get the user’s information, such as email, name, address, etc. Currently, we receive user details in the session callback: