- 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
26 lines
815 B
TypeScript
26 lines
815 B
TypeScript
// 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;
|
|
}
|