Skip to content
Snippets Groups Projects
Commit 8d9afbe8 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

feat(auth): implement session management for user authentication

- Add Session model to Prisma schema for session handling
- Implement session generation in `generateSession` utility
- Update registration and login APIs to create and set sessions
- Add middleware to skip user existence check in development
- Add Prisma client singleton for better connection management
- Include `@prisma/nuxt` module and `cookie` package in dependencies
- Create migration for session table and unique token index
parent 0afa0454
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment