NextAuth CredentialsProvider + database strategy

It looks like NextAuth does not want you to use the credentials method in combination with a database. Even when providing a database adapter, NextAuth does not store sessions in the database. Is it advisable to just use JWT instead, or switch to another library?
3 Replies
lijuanma1331
lijuanma13312y ago
Yes. Having the same problem. It works when using discord provider. But it does not store session using credentials. Ok now i understand. Next Auth did that intentionally.
Stivo
StivoOP2y ago
Yes, I switched to JWT until I find a better solution.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server