feat(auth): implement better authentication system with user sessions and password management
- Added user, session, account, and verification models to Prisma schema. - Integrated better-auth for user authentication with email and password. - Created auth middleware for session validation. - Implemented auth context and client in frontend for managing user sessions. - Added login and settings pages for user authentication and password management. - Updated routes to include authentication checks and user-specific content. - Enhanced UI components to reflect authentication state.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"name": "personal-admin",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "concurrently -n backend,frontend -c blue,green \"bun run --cwd apps/backend dev\" \"bun run --cwd apps/frontend dev\"",
|
||||
"dev": "conc -n backend,frontend -c blue,green \"bun run --cwd apps/backend dev\" \"bun run --cwd apps/frontend dev\"",
|
||||
"build": "bun run --cwd apps/frontend build"
|
||||
},
|
||||
"workspaces": [
|
||||
@@ -11,5 +11,8 @@
|
||||
],
|
||||
"devDependencies": {
|
||||
"concurrently": "^9.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@noble/ciphers": "^2.2.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user