@asgardeo/vue 0.0.2 → 0.0.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.
package/dist/cjs/index.js CHANGED
@@ -1318,13 +1318,13 @@ class AuthAPI {
1318
1318
  *
1319
1319
  * @example
1320
1320
  * ```
1321
- * client.trySignInSilently();
1321
+ * client.signInSilently();
1322
1322
  * ```
1323
1323
  */
1324
- trySignInSilently(additionalParams, tokenRequestConfig) {
1324
+ signInSilently(additionalParams, tokenRequestConfig) {
1325
1325
  return __awaiter(this, void 0, void 0, function* () {
1326
1326
  return this._client
1327
- .trySignInSilently(additionalParams, tokenRequestConfig)
1327
+ .signInSilently(additionalParams, tokenRequestConfig)
1328
1328
  .then((response) => __awaiter(this, void 0, void 0, function* () {
1329
1329
  if (!response) {
1330
1330
  Object.assign(this._authState, { isLoading: false });
@@ -1406,7 +1406,7 @@ const asgardeoPlugin = {
1406
1406
  }
1407
1407
  }
1408
1408
  });
1409
- 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); })); });
1409
+ 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); })); });
1410
1410
  const checkIsAuthenticated = () => __awaiter(this, void 0, void 0, function* () {
1411
1411
  return withStateSync(() => __awaiter(this, void 0, void 0, function* () {
1412
1412
  const isAuthenticatedState = yield AuthClient.isSignedIn();
@@ -1457,7 +1457,7 @@ const asgardeoPlugin = {
1457
1457
  return;
1458
1458
  }
1459
1459
  if (!config.disableTrySignInSilently) {
1460
- yield trySignInSilently();
1460
+ yield signInSilently();
1461
1461
  }
1462
1462
  }
1463
1463
  catch (err) {
@@ -1519,7 +1519,7 @@ const asgardeoPlugin = {
1519
1519
  }));
1520
1520
  }),
1521
1521
  state,
1522
- trySignInSilently,
1522
+ signInSilently,
1523
1523
  reInitialize: (config) => __awaiter(this, void 0, void 0, function* () {
1524
1524
  return withStateSync(() => __awaiter(this, void 0, void 0, function* () {
1525
1525
  yield AuthClient.reInitialize(config);