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:
25
services/auth/auth.constants.ts
Normal file
25
services/auth/auth.constants.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user