generateWidgetSession

generateWidgetSession(params: {
        referenceID: string;
        language: string;
        providers?: string[];
        authSuccessRedirectUrl?: string;
        authFailureRedirectUrl?: string;
        showDisconnect?: boolean;
    }): Promise<TerraWidgetResponse>;

Generate a widget session

Returns

A promise of type Widget Response

Parameters

referenceID: string

Terra user ID

providers: string[]

Array of strings for wearable providers

language: string

Language the widget page is showed in

Optional auth_success_redirect_url: string

Redirect URL when the session succeeds

Optional auth_failure_redirect_url: string

Redirect URL when the session fails

Returns Promise