- Added JWT authentication with token generation and validation. - Introduced user registration functionality with email and password. - Integrated Argon2 for password hashing. - Created SQLite user repository for user data persistence. - Updated application context to include user repository and configuration settings. - Added environment variable support for JWT secret and registration allowance. - Enhanced error handling for unauthorized access and validation errors. - Updated presentation layer to handle login and registration requests.
5 lines
91 B
Plaintext
5 lines
91 B
Plaintext
DATABASE_URL=sqlite:./dev.db
|
|
PORT=3000
|
|
JWT_SECRET=
|
|
JWT_TTL_SECONDS=
|
|
ALLOW_REGISTRATION=true |