authvisage-sdk
Version:
authvisage client sdk
31 lines • 940 B
TypeScript
import { type ClientOptions } from "@/schemas/clientOptions";
import { TokenManager } from "@/auth/tokenManager";
/**
* Main AuthVisage client for handling authentication
*/
export declare class AuthVisageClient {
private readonly projectId;
private readonly platformUrl;
private readonly backendUrl;
private readonly redirectUrl;
readonly auth: TokenManager;
constructor(options: ClientOptions);
/**
* Get Session id from the backend
* @returns Session id
*/
private _getSessionId;
/**
* 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