Browse Source
- Added constants for session management in `auth.ts`. - Created an authentication guard middleware in `02.auth-guard.ts` to protect API routes. - Introduced caching mechanism in `00.cache.ts` and `01.context.ts` for improved performance. - Developed user authentication context in `context.ts` to manage user sessions. - Implemented cookie handling functions in `cookie.ts` for session management. - Added error handling for authentication in `errors.ts`. - Enhanced user authentication logic in `index.ts` with session creation and validation. - Created captcha service for user registration and login in `captcha` directory. - Established configuration management with error handling in `config` directory. - Added utility functions for admin role verification and API route allowlisting. - Implemented rate limiting to prevent abuse of API endpoints.beauty-auth
2 changed files with 2 additions and 0 deletions
Binary file not shown.
Loading…
Reference in new issue