UNPKG

@baqhub/sdk

Version:

The official JavaScript SDK for the BAQ federated app platform.

17 lines (16 loc) 641 B
import { AuthenticationState } from "../model/local/authenticationState.js"; import { AppRecordContent } from "../model/recordTypes/appRecord.js"; export interface StartAuthenticationOptions { icon?: Blob; signal?: AbortSignal; } declare function register(entity: string, appContent: AppRecordContent, { icon, signal }?: StartAuthenticationOptions): Promise<{ flowUrl: string; state: AuthenticationState; }>; declare function complete(state: AuthenticationState, authorizationId: string): AuthenticationState; export declare const Authentication: { register: typeof register; complete: typeof complete; }; export {};