@asgardeo/javascript 0.1.3 → 0.1.5
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 +10 -0
- package/dist/models/config.d.ts +26 -0
- package/package.json +1 -1
package/dist/models/client.d.ts
CHANGED
|
@@ -108,6 +108,16 @@ export interface AsgardeoClient<T> {
|
|
|
108
108
|
* @returns A promise that resolves to an EmbeddedFlowExecuteResponse containing the flow execution details.
|
|
109
109
|
*/
|
|
110
110
|
signIn(payload: EmbeddedSignInFlowHandleRequestPayload, request: EmbeddedFlowExecuteRequestConfig<EmbeddedSignInFlowHandleRequestPayload>, sessionId?: string, onSignInSuccess?: (afterSignInUrl: string) => void): Promise<User>;
|
|
111
|
+
/**
|
|
112
|
+
* Try signing in silently in the background without any user interactions.
|
|
113
|
+
*
|
|
114
|
+
* @remarks This approach uses a passive auth request (prompt=none) sent from an iframe which might pose issues in cross-origin scenarios.
|
|
115
|
+
* Make sure you are aware of the limitations and browser compatibility issues.
|
|
116
|
+
*
|
|
117
|
+
* @param options - Optional sign-in options like additional parameters to be sent in the authorize request, etc.
|
|
118
|
+
* @returns A promise that resolves to the user if sign-in is successful, or false if not.
|
|
119
|
+
*/
|
|
120
|
+
signInSilently(options?: SignInOptions): Promise<User | boolean>;
|
|
111
121
|
/**
|
|
112
122
|
* Signs out the currently signed-in user.
|
|
113
123
|
*
|
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
|
/**
|