@asgardeo/browser 0.1.0 → 0.1.2
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 +2 -2
- package/dist/__legacy__/clients/main-thread-client.d.ts +4 -3
- package/dist/__legacy__/helpers/authentication-helper.d.ts +3 -3
- package/dist/__legacy__/models/client.d.ts +4 -4
- package/dist/__legacy__/models/web-worker.d.ts +3 -3
- package/dist/cjs/index.js +1092 -1084
- package/dist/cjs/index.js.map +4 -4
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1248 -1241
- package/dist/index.js.map +4 -4
- package/dist/theme/themeDetection.d.ts +40 -0
- package/package.json +2 -2
- package/dist/constants/StyleConstants.d.ts +0 -28
- package/dist/utils/withVendorCSSClassPrefix.d.ts +0 -32
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { AuthClientConfig, IsomorphicCrypto, TokenExchangeRequestConfig, StorageManager,
|
|
18
|
+
import { AuthClientConfig, IsomorphicCrypto, TokenExchangeRequestConfig, StorageManager, IdToken, OIDCEndpoints, User } from '@asgardeo/javascript';
|
|
19
19
|
import { Hooks } from './constants';
|
|
20
20
|
import { AuthenticationHelper } from './helpers';
|
|
21
21
|
import { HttpClientInstance } from './http-client';
|
|
@@ -399,7 +399,7 @@ export declare class AsgardeoSPAClient {
|
|
|
399
399
|
*
|
|
400
400
|
* @preserve
|
|
401
401
|
*/
|
|
402
|
-
getDecodedIdToken(): Promise<
|
|
402
|
+
getDecodedIdToken(sessionId?: string): Promise<IdToken | undefined>;
|
|
403
403
|
/**
|
|
404
404
|
* This method returns the IsomorphicCrypto instance.
|
|
405
405
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
3
|
*
|
|
4
|
-
* WSO2
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
5
|
* Version 2.0 (the "License"); you may not use this file except
|
|
6
6
|
* in compliance with the License.
|
|
7
7
|
* You may obtain a copy of the License at
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
18
|
import { AsgardeoAuthClient, AuthClientConfig } from '@asgardeo/javascript';
|
|
19
|
-
import { AuthenticationHelper
|
|
19
|
+
import { AuthenticationHelper } from '../helpers/authentication-helper';
|
|
20
|
+
import { SPAHelper } from '../helpers/spa-helper';
|
|
20
21
|
import { MainThreadClientConfig, MainThreadClientInterface } from '../models';
|
|
21
22
|
export declare const MainThreadClient: (instanceID: number, config: AuthClientConfig<MainThreadClientConfig>, getAuthHelper: (authClient: AsgardeoAuthClient<MainThreadClientConfig>, spaHelper: SPAHelper<MainThreadClientConfig>) => AuthenticationHelper<MainThreadClientConfig>) => Promise<MainThreadClientInterface>;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { AsgardeoAuthClient, AuthClientConfig, User, IsomorphicCrypto, TokenExchangeRequestConfig, StorageManager,
|
|
18
|
+
import { AsgardeoAuthClient, AuthClientConfig, User, IsomorphicCrypto, TokenExchangeRequestConfig, StorageManager, IdToken, ExtendedAuthorizeRequestUrlParams, OIDCEndpoints } from '@asgardeo/javascript';
|
|
19
19
|
import { SPAHelper } from './spa-helper';
|
|
20
20
|
import { HttpClientInstance, HttpError, HttpRequestConfig, HttpRequestInterface, HttpResponse, MainThreadClientConfig, SessionManagementHelperInterface, WebWorkerClientConfig } from '../models';
|
|
21
21
|
import { SPACustomGrantConfig } from '../models/request-custom-grant';
|
|
@@ -46,8 +46,8 @@ export declare class AuthenticationHelper<T extends MainThreadClientConfig | Web
|
|
|
46
46
|
handleSignIn(shouldStopAuthn: () => Promise<boolean>, checkSession: () => Promise<void>, tryRetrievingUserInfo?: () => Promise<User | undefined>): Promise<User | undefined>;
|
|
47
47
|
attachTokenToRequestConfig(request: HttpRequestConfig): Promise<void>;
|
|
48
48
|
getUser(): Promise<User>;
|
|
49
|
-
getDecodedIdToken(): Promise<
|
|
50
|
-
getDecodedIDPIDToken(): Promise<
|
|
49
|
+
getDecodedIdToken(sessionId?: string): Promise<IdToken>;
|
|
50
|
+
getDecodedIDPIDToken(): Promise<IdToken>;
|
|
51
51
|
getCrypto(): Promise<IsomorphicCrypto>;
|
|
52
52
|
getIdToken(): Promise<string>;
|
|
53
53
|
getOpenIDProviderEndpoints(): Promise<OIDCEndpoints>;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { AuthClientConfig, User, IsomorphicCrypto, TokenExchangeRequestConfig, StorageManager,
|
|
18
|
+
import { AuthClientConfig, User, IsomorphicCrypto, TokenExchangeRequestConfig, StorageManager, IdToken, OIDCEndpoints } from '@asgardeo/javascript';
|
|
19
19
|
import { HttpError, HttpRequestConfig, HttpResponse, MainThreadClientConfig, SignInConfig, WebWorkerClientConfig } from '.';
|
|
20
20
|
import { HttpClientInstance } from '../http-client';
|
|
21
21
|
export interface MainThreadClientInterface {
|
|
@@ -36,7 +36,7 @@ export interface MainThreadClientInterface {
|
|
|
36
36
|
refreshAccessToken(): Promise<User>;
|
|
37
37
|
revokeAccessToken(): Promise<boolean>;
|
|
38
38
|
getUser(): Promise<User>;
|
|
39
|
-
getDecodedIdToken(): Promise<
|
|
39
|
+
getDecodedIdToken(sessionId?: string): Promise<IdToken>;
|
|
40
40
|
getCrypto(): Promise<IsomorphicCrypto>;
|
|
41
41
|
getConfigData(): Promise<AuthClientConfig<MainThreadClientConfig>>;
|
|
42
42
|
getIdToken(): Promise<string>;
|
|
@@ -65,8 +65,8 @@ export interface WebWorkerClientInterface {
|
|
|
65
65
|
getOpenIDProviderEndpoints(): Promise<OIDCEndpoints>;
|
|
66
66
|
getUser(): Promise<User>;
|
|
67
67
|
getConfigData(): Promise<AuthClientConfig<WebWorkerClientConfig>>;
|
|
68
|
-
getDecodedIdToken(): Promise<
|
|
69
|
-
getDecodedIDPIDToken(): Promise<
|
|
68
|
+
getDecodedIdToken(sessionId?: string): Promise<IdToken>;
|
|
69
|
+
getDecodedIDPIDToken(): Promise<IdToken>;
|
|
70
70
|
getCrypto(): Promise<IsomorphicCrypto>;
|
|
71
71
|
getIdToken(): Promise<string>;
|
|
72
72
|
isSignedIn(): Promise<boolean>;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { AuthClientConfig, AuthorizeRequestUrlParams, User, IsomorphicCrypto, TokenExchangeRequestConfig,
|
|
18
|
+
import { AuthClientConfig, AuthorizeRequestUrlParams, User, IsomorphicCrypto, TokenExchangeRequestConfig, IdToken, OIDCEndpoints } from '@asgardeo/javascript';
|
|
19
19
|
import { HttpRequestConfig, HttpResponse, Message } from '.';
|
|
20
20
|
import { AuthorizationResponse, WebWorkerClientConfig } from '../..';
|
|
21
21
|
interface WebWorkerEvent<T> extends MessageEvent {
|
|
@@ -41,8 +41,8 @@ export interface WebWorkerCoreInterface {
|
|
|
41
41
|
refreshAccessToken(): Promise<User>;
|
|
42
42
|
revokeAccessToken(): Promise<boolean>;
|
|
43
43
|
getUser(): Promise<User>;
|
|
44
|
-
getDecodedIdToken(): Promise<
|
|
45
|
-
getDecodedIDPIDToken(): Promise<
|
|
44
|
+
getDecodedIdToken(sessionId?: string): Promise<IdToken>;
|
|
45
|
+
getDecodedIDPIDToken(): Promise<IdToken>;
|
|
46
46
|
getCrypto(): Promise<IsomorphicCrypto>;
|
|
47
47
|
getIdToken(): Promise<string>;
|
|
48
48
|
getOpenIDProviderEndpoints(): Promise<OIDCEndpoints>;
|