Usage of NextAuth with Prisma and Nextjs Appdir
Hello! Thats my first project in T3 stack, and first time im using NextAuth, but im not getting idea of it..
After signing in i have session cookies as you can see on the screen, in prisma i have model to Session, but what with that? I need to handle it by myself to add sessions to database? How i can now check does user is logged in?
Could someone explain me how should it work, and how should i handle session with my prisma? Thanks!
Thats my current repo: https://github.com/Bartholomeas/business-card-generator/tree/feat/authorization
GitHub
GitHub - Bartholomeas/business-card-generator at feat/authorization
Contribute to Bartholomeas/business-card-generator development by creating an account on GitHub.
![No description](https://cdn.answeroverflow.com/1170125399200641064/Zrzut_ekranu_2023-11-3_o_23.18.29.png)
0 Replies