blob: 74803133a9a85c9ccf338a55e68a642dac4c5dd5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
Here's the spec for our new authentication system:
Requirements:
- Users can register with email/password
- Users can log in and receive a JWT token
- Protected routes require valid JWT
- Tokens expire after 24 hours
- Support password reset via email
We need to implement this. There are multiple steps involved - user model, auth routes, middleware, email service integration.
|