How to store session in DB using credentials provider?

How to store session in DB using credentials provider? Otherwise, I cannot manage the user's logout from the server side.
2 Replies
Neto
Neto2y ago
Overview | NextAuth.js
An Adapter in NextAuth.js connects your application to whatever database or backend system you want to use to store data for users, their accounts, sessions, etc. Adapters are optional, unless you need to persist user information in your own database, or you want to implement certain flows. The Email Provider requires an adapter to be able to sa...
kingfisher95
kingfisher952y ago
Doesn't really answer the question
Want results from more Discord servers?
Add your server