@getsupertab/supertab-js 3.2.2 → 3.3.0
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/sdk.d.ts
CHANGED
|
@@ -216,11 +216,14 @@ declare class AuthClient {
|
|
|
216
216
|
*
|
|
217
217
|
* @param silently Whether to attempt to refresh session without opening SSO window
|
|
218
218
|
* @param screenHint The screen hint to use for SSO
|
|
219
|
+
* @param flow The flow to use for SSO
|
|
220
|
+
*
|
|
219
221
|
* @returns Authentication data.
|
|
220
222
|
*/
|
|
221
|
-
start({ silently, screenHint, }?: {
|
|
223
|
+
start({ silently, screenHint, flow, }?: {
|
|
222
224
|
silently?: boolean;
|
|
223
225
|
screenHint?: ScreenHint;
|
|
226
|
+
flow?: "popup" | "redirect";
|
|
224
227
|
}): Promise<AuthData | null>;
|
|
225
228
|
/**
|
|
226
229
|
* Clears auth data from browser storage.
|
|
@@ -262,15 +265,20 @@ declare class AuthProvider {
|
|
|
262
265
|
get authData(): AuthData | null;
|
|
263
266
|
set authData(authData: AuthData);
|
|
264
267
|
get authStatus(): AuthStatus;
|
|
265
|
-
startInteractiveFlow({ screenHint }?: {
|
|
268
|
+
startInteractiveFlow({ screenHint, flow, }?: {
|
|
266
269
|
screenHint?: ScreenHint;
|
|
267
|
-
|
|
270
|
+
flow?: "popup" | "redirect";
|
|
271
|
+
}): Promise<AuthData | null>;
|
|
272
|
+
private startRedirectFlow;
|
|
273
|
+
private startMockRedirectFlow;
|
|
274
|
+
handleRedirectCallback(): Promise<AuthData>;
|
|
268
275
|
private startMockInteractiveFlow;
|
|
269
276
|
refreshToken(): Promise<AuthData | null>;
|
|
270
277
|
private refreshMockToken;
|
|
271
278
|
reset(): void;
|
|
272
279
|
private exchangeCodeForTokens;
|
|
273
280
|
private clearAuthData;
|
|
281
|
+
private constructAuthUrl;
|
|
274
282
|
}
|
|
275
283
|
|
|
276
284
|
declare enum AuthStatus {
|
package/dist/pkg/prod/sdk.js
CHANGED