@asgardeo/browser 0.4.3 → 0.5.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/__legacy__/client.d.ts +1 -1
- package/dist/__legacy__/clients/main-thread-client.d.ts +1 -1
- package/dist/__legacy__/clients/web-worker-client.d.ts +1 -1
- package/dist/__legacy__/helpers/authentication-helper.d.ts +1 -1
- package/dist/__legacy__/models/message.d.ts +1 -0
- package/dist/__legacy__/utils/spa-utils.d.ts +2 -2
- package/dist/__legacy__/worker/worker-core.d.ts +1 -1
- package/dist/cjs/index.js +30 -31
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +30 -31
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
|
@@ -43,7 +43,7 @@ export declare class AsgardeoSPAClient {
|
|
|
43
43
|
protected _onEndUserSession: (response: any) => void;
|
|
44
44
|
protected _onInitialize: (response: boolean) => void;
|
|
45
45
|
protected _onCustomGrant: Map<string, (response: any) => void>;
|
|
46
|
-
protected
|
|
46
|
+
protected _instanceId: number;
|
|
47
47
|
protected constructor(id: number);
|
|
48
48
|
instantiateAuthHelper(authHelper?: typeof AuthenticationHelper): void;
|
|
49
49
|
instantiateWorker(worker: new () => Worker): void;
|
|
@@ -19,4 +19,4 @@ import { AsgardeoAuthClient, AuthClientConfig } from '@asgardeo/javascript';
|
|
|
19
19
|
import { AuthenticationHelper } from '../helpers/authentication-helper';
|
|
20
20
|
import { SPAHelper } from '../helpers/spa-helper';
|
|
21
21
|
import { MainThreadClientConfig, MainThreadClientInterface } from '../models';
|
|
22
|
-
export declare const MainThreadClient: (
|
|
22
|
+
export declare const MainThreadClient: (instanceId: number, config: AuthClientConfig<MainThreadClientConfig>, getAuthHelper: (authClient: AsgardeoAuthClient<MainThreadClientConfig>, spaHelper: SPAHelper<MainThreadClientConfig>) => AuthenticationHelper<MainThreadClientConfig>) => Promise<MainThreadClientInterface>;
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
import { AsgardeoAuthClient, AuthClientConfig } from '@asgardeo/javascript';
|
|
19
19
|
import { AuthenticationHelper, SPAHelper } from '../helpers';
|
|
20
20
|
import { WebWorkerClientConfig, WebWorkerClientInterface } from '../models';
|
|
21
|
-
export declare const WebWorkerClient: (
|
|
21
|
+
export declare const WebWorkerClient: (instanceId: number, config: AuthClientConfig<WebWorkerClientConfig>, webWorker: new () => Worker, getAuthHelper: (authClient: AsgardeoAuthClient<WebWorkerClientConfig>, spaHelper: SPAHelper<WebWorkerClientConfig>) => AuthenticationHelper<WebWorkerClientConfig>) => Promise<WebWorkerClientInterface>;
|
|
@@ -23,7 +23,7 @@ export declare class AuthenticationHelper<T extends MainThreadClientConfig | Web
|
|
|
23
23
|
protected _authenticationClient: AsgardeoAuthClient<T>;
|
|
24
24
|
protected _storageManager: StorageManager<T>;
|
|
25
25
|
protected _spaHelper: SPAHelper<T>;
|
|
26
|
-
protected
|
|
26
|
+
protected _instanceId: number;
|
|
27
27
|
protected _isTokenRefreshing: boolean;
|
|
28
28
|
constructor(authClient: AsgardeoAuthClient<T>, spaHelper: SPAHelper<T>);
|
|
29
29
|
enableHttpHandler(httpClient: HttpClientInstance): void;
|
|
@@ -21,8 +21,8 @@ export declare class SPAUtils {
|
|
|
21
21
|
static removeAuthorizationCode(): void;
|
|
22
22
|
static getPKCE(pkceKey: string): string;
|
|
23
23
|
static setPKCE(pkceKey: string, pkce: string): void;
|
|
24
|
-
static setSignOutURL(url: string, clientId: string,
|
|
25
|
-
static getSignOutUrl(clientId: string,
|
|
24
|
+
static setSignOutURL(url: string, clientId: string, instanceId: number): void;
|
|
25
|
+
static getSignOutUrl(clientId: string, instanceId: number): string;
|
|
26
26
|
static removePKCE(pkceKey: string): void;
|
|
27
27
|
/**
|
|
28
28
|
* This method is used to discontinue the execution of the `signIn` method if `callOnlyOnRedirect` is true and
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
import { AsgardeoAuthClient, AuthClientConfig } from '@asgardeo/javascript';
|
|
19
19
|
import { AuthenticationHelper, SPAHelper } from '../helpers';
|
|
20
20
|
import { WebWorkerClientConfig, WebWorkerCoreInterface } from '../models';
|
|
21
|
-
export declare const WebWorkerCore: (
|
|
21
|
+
export declare const WebWorkerCore: (instanceId: number, config: AuthClientConfig<WebWorkerClientConfig>, getAuthHelper: (authClient: AsgardeoAuthClient<WebWorkerClientConfig>, spaHelper: SPAHelper<WebWorkerClientConfig>) => AuthenticationHelper<WebWorkerClientConfig>) => Promise<WebWorkerCoreInterface>;
|