@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.
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/auth-api.d.ts +2 -2
- package/dist/cjs/types/tests/mocks/mocks.d.ts +1 -1
- package/dist/cjs/types/types.d.ts +1 -1
- package/dist/cjs/types/vitest.config.d.ts +1 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/auth-api.d.ts +2 -2
- package/dist/esm/types/tests/mocks/mocks.d.ts +1 -1
- package/dist/esm/types/types.d.ts +1 -1
- package/dist/esm/types/vitest.config.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +4 -4
package/dist/cjs/index.js
CHANGED
|
@@ -1318,13 +1318,13 @@ class AuthAPI {
|
|
|
1318
1318
|
*
|
|
1319
1319
|
* @example
|
|
1320
1320
|
* ```
|
|
1321
|
-
* client.
|
|
1321
|
+
* client.signInSilently();
|
|
1322
1322
|
* ```
|
|
1323
1323
|
*/
|
|
1324
|
-
|
|
1324
|
+
signInSilently(additionalParams, tokenRequestConfig) {
|
|
1325
1325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1326
1326
|
return this._client
|
|
1327
|
-
.
|
|
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
|
|
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
|
|
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
|
-
|
|
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);
|