@getsupertab/supertab-js 3.2.2 → 3.3.1

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.
@@ -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
- }): Promise<AuthData>;
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 {
@@ -1,4 +1,4 @@
1
- import { S as e } from "./sdk-gDAev56T.js";
1
+ import { S as e } from "./sdk-h-7T0rL2.js";
2
2
  export {
3
3
  e as Supertab
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import * as a from "@sentry/react";
2
- import { T as l, P as m, a as c, V as E } from "./sdk-gDAev56T.js";
2
+ import { T as l, P as m, a as c, V as E } from "./sdk-h-7T0rL2.js";
3
3
  a.init({
4
4
  dsn: E,
5
5
  release: `${m}@${c}`,
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "engines": {
22
22
  "node": ">=22.13.1"
23
23
  },
24
- "version": "3.2.2",
24
+ "version": "3.3.1",
25
25
  "type": "module",
26
26
  "scripts": {
27
27
  "dev": "vite --config .vite/vite.dev.config.ts",