@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
|
@@ -221,10 +221,10 @@ declare class AuthAPI {
|
|
|
221
221
|
*
|
|
222
222
|
* @example
|
|
223
223
|
* ```
|
|
224
|
-
* client.
|
|
224
|
+
* client.signInSilently();
|
|
225
225
|
* ```
|
|
226
226
|
*/
|
|
227
|
-
|
|
227
|
+
signInSilently(additionalParams?: Record<string, string | boolean>, tokenRequestConfig?: {
|
|
228
228
|
params: Record<string, unknown>;
|
|
229
229
|
}): Promise<BasicUserInfo | boolean>;
|
|
230
230
|
}
|
|
@@ -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
|
-
|
|
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.
|
|
1319
|
+
* client.signInSilently();
|
|
1320
1320
|
* ```
|
|
1321
1321
|
*/
|
|
1322
|
-
|
|
1322
|
+
signInSilently(additionalParams, tokenRequestConfig) {
|
|
1323
1323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1324
1324
|
return this._client
|
|
1325
|
-
.
|
|
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
|
|
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
|
|
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
|
-
|
|
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);
|