Add authentication system with session-based auth
All checks were successful
Build and Push Backend / build (push) Successful in 20s

- Implement register, login, logout, and me endpoints
- Use bcryptjs for password hashing
- HTTPOnly secure cookies for sessions (Lucia Auth pattern)
- Users and sessions tables with proper relations
- 7-day session duration with auto-expiry

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hector Ros
2026-01-20 01:56:25 +01:00
parent 5672127593
commit 1dc0ab515d
12 changed files with 1226 additions and 1 deletions

View File

@@ -15,6 +15,7 @@
"format": "prettier --write src/**/*.ts"
},
"devDependencies": {
"@types/bcryptjs": "^3.0.0",
"@types/bun": "latest",
"@types/cors": "^2.8.19",
"@types/express": "^5.0.6",
@@ -32,6 +33,7 @@
"@kubernetes/client-node": "^1.4.0",
"@modelcontextprotocol/sdk": "^1.25.2",
"axios": "^1.13.2",
"bcryptjs": "^3.0.3",
"bullmq": "^5.66.5",
"cors": "^2.8.5",
"dotenv": "^17.2.3",