21 lines
428 B
TypeScript
21 lines
428 B
TypeScript
export type AuthIntent = 'claim' | 'collection';
|
|
|
|
export type AuthPromptResult = 'authenticated' | 'dismissed';
|
|
|
|
export type AuthStep = 'email' | 'code';
|
|
|
|
export interface AuthSession {
|
|
email: string;
|
|
accessToken: string;
|
|
tokenType: string;
|
|
refreshToken?: string;
|
|
expiresAt?: number;
|
|
}
|
|
|
|
export interface TokenResponse {
|
|
access_token: string;
|
|
token_type?: string;
|
|
expires_in?: number;
|
|
refresh_token?: string;
|
|
}
|