21 lines
447 B
TypeScript
21 lines
447 B
TypeScript
export interface AuthSession {
|
|
sessionId: string;
|
|
telegramUserId: number;
|
|
username: string | null;
|
|
displayName: string;
|
|
active: boolean;
|
|
expiresAt: string;
|
|
}
|
|
|
|
export interface TelegramAuthData {
|
|
id: number;
|
|
first_name: string;
|
|
last_name?: string;
|
|
username?: string;
|
|
photo_url?: string;
|
|
auth_date: number;
|
|
hash: string;
|
|
}
|
|
|
|
export type AuthStatus = 'unknown' | 'checking' | 'authenticated' | 'expired' | 'unauthenticated';
|