@asgardeo/javascript 0.1.4 → 0.1.6
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/AsgardeoJavaScriptClient.d.ts +1 -0
- package/dist/__legacy__/models/client-config.d.ts +19 -6
- package/dist/cjs/index.js +28 -27
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +28 -27
- package/dist/index.js.map +2 -2
- package/dist/models/client.d.ts +6 -0
- package/dist/models/config.d.ts +26 -0
- package/package.json +1 -1
package/dist/models/client.d.ts
CHANGED
|
@@ -150,4 +150,10 @@ export interface AsgardeoClient<T> {
|
|
|
150
150
|
* @returns A promise that resolves to an EmbeddedFlowExecuteResponse containing the flow execution details.
|
|
151
151
|
*/
|
|
152
152
|
signUp(payload: EmbeddedFlowExecuteRequestPayload): Promise<EmbeddedFlowExecuteResponse>;
|
|
153
|
+
/**
|
|
154
|
+
* Retrieves the access token for the current session.
|
|
155
|
+
* @param sessionId - Optional session ID to retrieve the access token for a specific session.
|
|
156
|
+
* @returns A promise that resolves to the access token string.
|
|
157
|
+
*/
|
|
158
|
+
getAccessToken(sessionId?: string): Promise<string>;
|
|
153
159
|
}
|
package/dist/models/config.d.ts
CHANGED
|
@@ -96,6 +96,32 @@ export interface BaseConfig<T = unknown> extends WithPreferences {
|
|
|
96
96
|
* and use the `SignUp` component to render it.
|
|
97
97
|
*/
|
|
98
98
|
signUpUrl?: string | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Token validation configuration.
|
|
101
|
+
* This allows you to configure how the SDK validates tokens received from the authorization server.
|
|
102
|
+
* It includes options for ID token validation, such as whether to validate the token,
|
|
103
|
+
* whether to validate the issuer, and the allowed clock tolerance for token validation.
|
|
104
|
+
* If not provided, the SDK will use default validation settings.
|
|
105
|
+
*/
|
|
106
|
+
tokenValidation?: {
|
|
107
|
+
/**
|
|
108
|
+
* ID token validation config.
|
|
109
|
+
*/
|
|
110
|
+
idToken?: {
|
|
111
|
+
/**
|
|
112
|
+
* Whether to validate ID tokens.
|
|
113
|
+
*/
|
|
114
|
+
validate?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Whether to validate the issuer of ID tokens.
|
|
117
|
+
*/
|
|
118
|
+
validateIssuer?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Allowed leeway for ID tokens (in seconds).
|
|
121
|
+
*/
|
|
122
|
+
clockTolerance?: number;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
99
125
|
}
|
|
100
126
|
export interface WithPreferences {
|
|
101
127
|
/**
|