@getsupertab/supertab-js 3.12.7 → 3.12.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pkg/prod/{browser-ponyfill-BvE6W3EO.js → browser-ponyfill-DfMUXH4Z.js} +1 -1
- package/dist/pkg/prod/{sentry-o_VIj6g7.js → sentry-2kvntZQV.js} +1 -1
- package/dist/pkg/prod/{supertab-alMYEYvy.js → supertab-Ka6CkyUb.js} +406 -386
- package/dist/pkg/prod/supertab.d.ts +9 -2
- package/dist/pkg/prod/supertab.js +1 -1
- package/package.json +1 -1
|
@@ -220,9 +220,10 @@ declare class AuthClient {
|
|
|
220
220
|
*
|
|
221
221
|
* @returns Authentication data.
|
|
222
222
|
*/
|
|
223
|
-
start({ silently, screenHint, flow, }?: {
|
|
223
|
+
start({ silently, screenHint, ssoFlow, flow, }?: {
|
|
224
224
|
silently?: boolean;
|
|
225
225
|
screenHint?: ScreenHint;
|
|
226
|
+
ssoFlow?: SsoFlow;
|
|
226
227
|
flow?: "popup" | "redirect";
|
|
227
228
|
}): Promise<AuthData | null>;
|
|
228
229
|
/**
|
|
@@ -266,8 +267,9 @@ declare class AuthProvider {
|
|
|
266
267
|
get authData(): AuthData | null;
|
|
267
268
|
set authData(authData: AuthData);
|
|
268
269
|
get authStatus(): AuthStatus;
|
|
269
|
-
startInteractiveFlow({ screenHint, flow, }?: {
|
|
270
|
+
startInteractiveFlow({ screenHint, ssoFlow, flow, }?: {
|
|
270
271
|
screenHint?: ScreenHint;
|
|
272
|
+
ssoFlow?: SsoFlow;
|
|
271
273
|
flow?: "popup" | "redirect";
|
|
272
274
|
}): Promise<AuthData | null>;
|
|
273
275
|
private startRedirectFlow;
|
|
@@ -409,13 +411,18 @@ declare type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Partial<T> &
|
|
|
409
411
|
|
|
410
412
|
declare type ScreenHint = "login" | "register";
|
|
411
413
|
|
|
414
|
+
declare type SsoFlow = "purchase";
|
|
415
|
+
|
|
412
416
|
export declare class Supertab extends SupertabClient {
|
|
413
417
|
private supertabConfig;
|
|
414
418
|
protected apiConfig: Configuration;
|
|
415
419
|
api: ApiClient;
|
|
416
420
|
auth: AuthClient;
|
|
417
421
|
checkout: CheckoutClient;
|
|
422
|
+
private ssoFlow?;
|
|
418
423
|
constructor(supertabConfig: SupertabConfig);
|
|
424
|
+
setSsoFlow(ssoFlow?: SsoFlow): void;
|
|
425
|
+
getSsoFlow(): SsoFlow | undefined;
|
|
419
426
|
createPaygate({ merchantName, merchantLogoUrl, language, experienceId, purchaseMetadata, }?: {
|
|
420
427
|
merchantName?: string;
|
|
421
428
|
merchantLogoUrl?: string;
|