JWT vs DB, if user is deleted from DB

Hello guys, I have a question, right now I am working on app, and the app refetches the session on windowsFocus, which is great, because it will always refresh the data/user and check if that user still exist on the DB. Now though this only work if the strategy on the next auth is "database" is it possible to have the same behavior if its "jwt"
3 Replies
barry
barry2y ago
JWT usually isnt a good idea
Enyel
EnyelOP2y ago
Yeah, I was reading on this with next auth is not recommended, but if I want to create a credentialsProvider it only works with with this approach So any ideas if this is possible?
barry
barry2y ago
will only happen when new token is needed afaik
Want results from more Discord servers?
Add your server