UNPKG

authvisage-sdk

Version:
42 lines 1.12 kB
/** * Configuration options for AuthVisage authentication client */ export interface AuthVisageClientOptions { goTrueUrl: string; platformUrl: string; backendUrl: string; projectId: string; redirectUrl: string; } /** * Structure for OAuth token response */ export interface TokenResponse { access_token: string; refresh_token?: string; expires_in?: number; } /** * Main AuthVisage client for handling authentication */ export declare class AuthVisageClient { private readonly projectId; private readonly platformUrl; private readonly backendUrl; private readonly redirectUrl; private readonly authClient; constructor(options: AuthVisageClientOptions); /** * Constructs the OAuth authorization URL */ private _constructAuthUrl; /** * Handles the OAuth callback and exchanges the authorization code for an access token */ private _handleOAuthCallback; /** * Initiates the face login process by redirecting the user to AuthVisage */ faceLogin(): Promise<void>; } //# sourceMappingURL=authVisageClient.d.ts.map