@asgardeo/javascript 0.1.3 → 0.1.4

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.
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/javascript",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Framework agnostic JavaScript SDK for Asgardeo.",
5
5
  "keywords": [
6
6
  "asgardeo",