Files
vitanovaPackages/packages/auth/src/ui/auth.models.ts
sdarbinyan 5ffc1b1450
Some checks failed
Release / release-branches (auth) (push) Has been cancelled
Release / release-branches (payment) (push) Has been cancelled
Release / version-pr (push) Has been cancelled
feat(packages): add standalone auth and payment
2026-08-21 08:08:42 +04:00

20 lines
651 B
TypeScript

import { AuthSession } from '../telegram/models/session.model';
export type AuthMode = 'customer' | 'admin';
export type AuthMethod = 'qr' | 'credentials' | 'yandex';
export interface CredentialLogin { login: string; password: string; }
export interface AuthResult {
method: AuthMethod;
mode: AuthMode;
session: AuthSession;
accessToken?: string;
refreshToken?: string;
}
export interface ExternalAuthStart { attemptId: string; authorizationUrl: string; }
export interface AuthFailure {
method: AuthMethod;
code: 'configuration' | 'invalid_credentials' | 'backend' | 'popup_blocked' | 'expired';
message: string;
cause?: unknown;
}