nozadev
TTCTheo's Typesafe Cult
•Created by izumi06 on 5/23/2023 in #questions
Auth Solution
I don't understand how/why NextAuth sessions are stored in db, where can I research this?
6 replies
TTCTheo's Typesafe Cult
•Created by nozadev on 3/18/2023 in #questions
Is it okay to have CredentialsProvider as JWT and save Google/Discord users in database session?
@rocawear I don't like to have Account and Session table in my DB just for google oauth, I plan to remove google auth from my project and just go with email/password where having only User model is enough.
7 replies
TTCTheo's Typesafe Cult
•Created by nozadev on 3/18/2023 in #questions
Is it okay to have CredentialsProvider as JWT and save Google/Discord users in database session?
Yeah, Session and Account model is not required for email/password but I think it's required for Google/GitHub Providers
7 replies
TTCTheo's Typesafe Cult
•Created by nozadev on 3/18/2023 in #questions
Is it okay to have CredentialsProvider as JWT and save Google/Discord users in database session?
this is really helpful, I implemented this in my code and it works, however I need to read JWT docs to understand what it does.
7 replies