Next.js Discord

Discord Forum

Next auth

Unanswered
Pip gall wasp posted this in #help-forum
Open in Discord
Pip gall waspOP
Hello! I want to use next-auth + Prisma. I don’t understand how signIn, with credential, with strategy: "database". Save session in database.
Please, send me example. (Sorry, for my English)

1 Reply

Satin Angora
When using credentials you are forced to use jwt. Stated in the next-auth docs:
https://next-auth.js.org/providers/credentials

"Credentials provider can only be used if JSON Web Tokens are enabled for sessions."