@alloyidentity/web-sdk
Version:
Alloy Web Document SDK
20 lines (19 loc) • 549 B
TypeScript
export interface BCInitOptions {
customerSessionId?: string;
context: string;
brand: string;
jsUrl: string;
}
export interface BCInitResult {
cdApi: typeof window.cdApi;
customerSessionId: string;
}
export declare const hasMissingOptions: (options: BCInitOptions) => string | null;
/**
* Initialize BC.
*
* If the caller does not pass in a bc session id, we will create one for them and return it.
*
* @param options
*/
export declare const initBC: (options: BCInitOptions) => Promise<BCInitResult>;