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
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.
Yes, I switched to JWT until I find a better solution.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View