Use session with credentials provider on NextAuth ( istead of JWT )
With NextAuth we can choose to use JWT or Session as a session meccanism.
The only "limitation" we have is that by default the Credentials provider can only be use if JSON Web Tokens ( JWT) are enabled.
In this tutorial we will se how to remove this limitation and use credentials provider with Sessions.
Edit the src/pages/api/auth/[...nextauth].ts