Initial commit: Complete NodeJS-native setup

- Migrated from Python pre-commit to NodeJS-native solution
- Reorganized documentation structure
- Set up Husky + lint-staged for efficient pre-commit hooks
- Fixed Dockerfile healthcheck issue
- Added comprehensive documentation index
This commit is contained in:
William Valentin
2025-09-06 01:42:48 -07:00
commit e48adbcb00
159 changed files with 24405 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
// Client-side auth constants for demo/development purposes
// In production, these would be handled by a secure backend service
export const JWT_EXPIRES_IN = '1h';
export const REFRESH_TOKEN_EXPIRES_IN = '7d';
export const EMAIL_VERIFICATION_EXPIRES_IN = '24h';
// Mock secrets for frontend-only demo (NOT for production use)
export const JWT_SECRET = 'demo_jwt_secret_for_frontend_only';
export const REFRESH_TOKEN_SECRET = 'demo_refresh_secret_for_frontend_only';
export const EMAIL_VERIFICATION_SECRET =
'demo_email_verification_secret_for_frontend_only';
export enum AccountStatus {
PENDING = 'PENDING',
ACTIVE = 'ACTIVE',
SUSPENDED = 'SUSPENDED',
}
export interface AuthConfig {
jwtSecret: string;
jwtExpiresIn: string;
refreshTokenExpiresIn: string;
emailVerificationExpiresIn: string;
}