@asgardeo/vue 0.0.3 → 0.0.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.
@@ -221,10 +221,10 @@ declare class AuthAPI {
221
221
  *
222
222
  * @example
223
223
  * ```
224
- * client.trySignInSilently();
224
+ * client.signInSilently();
225
225
  * ```
226
226
  */
227
- trySignInSilently(additionalParams?: Record<string, string | boolean>, tokenRequestConfig?: {
227
+ signInSilently(additionalParams?: Record<string, string | boolean>, tokenRequestConfig?: {
228
228
  params: Record<string, unknown>;
229
229
  }): Promise<BasicUserInfo | boolean>;
230
230
  }
@@ -41,7 +41,7 @@ export type MockAuthAPI = {
41
41
  revokeAccessToken: Mock;
42
42
  signIn: Mock;
43
43
  signOut: Mock;
44
- trySignInSilently: Mock;
44
+ signInSilently: Mock;
45
45
  reInitialize: Mock;
46
46
  updateState: Mock;
47
47
  };
@@ -92,7 +92,7 @@ export interface AuthContextInterface {
92
92
  }) => Promise<BasicUserInfo>;
93
93
  signOut: (callback?: (response: boolean) => void) => Promise<boolean>;
94
94
  state: AuthStateInterface;
95
- trySignInSilently: (additionalParams?: Record<string, string | boolean>, tokenRequestConfig?: {
95
+ signInSilently: (additionalParams?: Record<string, string | boolean>, tokenRequestConfig?: {
96
96
  params: Record<string, unknown>;
97
97
  }) => Promise<boolean | BasicUserInfo>;
98
98
  reInitialize(config: Partial<AuthClientConfig<Config>>): Promise<void>;
@@ -15,5 +15,5 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- declare const _default: import("vite").UserConfig;
18
+ declare const _default: import("vite").UserConfig & Promise<import("vite").UserConfig> & import("vitest/dist/config").UserConfigFnObject & import("vitest/dist/config").UserConfigExport;
19
19
  export default _default;
package/dist/esm/index.js CHANGED
@@ -1316,13 +1316,13 @@ class AuthAPI {
1316
1316
  *
1317
1317
  * @example
1318
1318
  * ```
1319
- * client.trySignInSilently();
1319
+ * client.signInSilently();
1320
1320
  * ```
1321
1321
  */
1322
- trySignInSilently(additionalParams, tokenRequestConfig) {
1322
+ signInSilently(additionalParams, tokenRequestConfig) {
1323
1323
  return __awaiter(this, void 0, void 0, function* () {
1324
1324
  return this._client
1325
- .trySignInSilently(additionalParams, tokenRequestConfig)
1325
+ .signInSilently(additionalParams, tokenRequestConfig)
1326
1326
  .then((response) => __awaiter(this, void 0, void 0, function* () {
1327
1327
  if (!response) {
1328
1328
  Object.assign(this._authState, { isLoading: false });
@@ -1404,7 +1404,7 @@ const asgardeoPlugin = {
1404
1404
  }
1405
1405
  }
1406
1406
  });
1407
- const trySignInSilently = (additionalParams, tokenRequestConfig) => __awaiter(this, void 0, void 0, function* () { return withStateSync(() => __awaiter(this, void 0, void 0, function* () { return AuthClient.trySignInSilently(additionalParams, tokenRequestConfig); })); });
1407
+ const signInSilently = (additionalParams, tokenRequestConfig) => __awaiter(this, void 0, void 0, function* () { return withStateSync(() => __awaiter(this, void 0, void 0, function* () { return AuthClient.signInSilently(additionalParams, tokenRequestConfig); })); });
1408
1408
  const checkIsAuthenticated = () => __awaiter(this, void 0, void 0, function* () {
1409
1409
  return withStateSync(() => __awaiter(this, void 0, void 0, function* () {
1410
1410
  const isAuthenticatedState = yield AuthClient.isSignedIn();
@@ -1455,7 +1455,7 @@ const asgardeoPlugin = {
1455
1455
  return;
1456
1456
  }
1457
1457
  if (!config.disableTrySignInSilently) {
1458
- yield trySignInSilently();
1458
+ yield signInSilently();
1459
1459
  }
1460
1460
  }
1461
1461
  catch (err) {
@@ -1517,7 +1517,7 @@ const asgardeoPlugin = {
1517
1517
  }));
1518
1518
  }),
1519
1519
  state,
1520
- trySignInSilently,
1520
+ signInSilently,
1521
1521
  reInitialize: (config) => __awaiter(this, void 0, void 0, function* () {
1522
1522
  return withStateSync(() => __awaiter(this, void 0, void 0, function* () {
1523
1523
  yield AuthClient.reInitialize(config);