feat: add JWT authentication with register, login, refresh, and me endpoints
Adds bcrypt password hashing, JWT access/refresh token generation, requireAuth middleware, and /api/auth routes (POST /register, POST /login, POST /refresh, GET /me). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
13
package.json
13
package.json
@@ -14,6 +14,17 @@
|
||||
"node": ">=20"
|
||||
},
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": ["@prisma/client", "@prisma/engines", "esbuild", "prisma"]
|
||||
"onlyBuiltDependencies": [
|
||||
"@prisma/client",
|
||||
"@prisma/engines",
|
||||
"esbuild",
|
||||
"prisma"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"prisma": "6.19.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@prisma/client": "6.19.3"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user