Relative Content

Tag Archive for reactjsauthenticationnext.jsbackendnext-auth

Token and Session is getting undefined in Next auth

I am builidhg a credentials based authentication module in next.js using next auth library. Everything seems to be working fine. When I try to inject token with some extra information from user, it is getting undefined.
Here is the code for Credentials Provider