Remnawave_backend/libs/contract/api/controllers/auth.ts
kastov 28e5329762
feat: implement passkey authentication and remnawave settings management, move auth related .env variables to database
- Added passkey authentication options and verification endpoints in the AuthController.
- Introduced RemnawaveSettings model and integrated it into the database schema.
- Updated configuration schema to support passkey and remnawave settings.
- Refactored authentication service to utilize passkey settings for login processes.
2025-10-24 00:16:48 +03:00

17 lines
480 B
TypeScript

export const AUTH_CONTROLLER = 'auth' as const;
export const AUTH_ROUTES = {
LOGIN: 'login',
REGISTER: 'register',
GET_STATUS: 'status',
OAUTH2: {
TELEGRAM_CALLBACK: 'oauth2/tg/callback',
AUTHORIZE: 'oauth2/authorize',
CALLBACK: 'oauth2/callback',
},
PASSKEY: {
GET_AUTHENTICATION_OPTIONS: 'passkey/authentication/options', // get
VERIFY_AUTHENTICATION: 'passkey/authentication/verify', // post
},
} as const;