Login in with credentials with next auth
Hello! I'm trying to learn how to use next auth with credentials. So i got this next auth settings: And i'm using this function to login , signIn is imported from next-auth. And everything seems to be okay, but that authentication is not persisting. I mean, when i login and go to index file and again to login page, I'm again unauthenticated. Whats the problem?
5 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
is using default next auth middleware okay?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
https://next-auth.js.org/configuration/nextjs#basic-usage i was using this, and it seems to be working fine, but when i call signOut function from next auth i'm still authenticated after reload. whats the reason?
Next.js | NextAuth.js
unstable_getServerSession
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View