@asgardeo/browser 0.1.2 → 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.
- package/dist/__legacy__/client.d.ts +2 -2
- package/dist/__legacy__/helpers/authentication-helper.d.ts +1 -1
- package/dist/__legacy__/models/client.d.ts +2 -2
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +9 -9
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2949,7 +2949,7 @@ var MainThreadClient = async (instanceID, config, getAuthHelper) => {
|
|
|
2949
2949
|
}
|
|
2950
2950
|
return url;
|
|
2951
2951
|
};
|
|
2952
|
-
const
|
|
2952
|
+
const signInSilently = async (additionalParams, tokenRequestConfig) => _authenticationHelper.signInSilently(
|
|
2953
2953
|
constructSilentSignInUrl,
|
|
2954
2954
|
requestAccessToken,
|
|
2955
2955
|
_sessionManagementHelper,
|
|
@@ -3001,7 +3001,7 @@ var MainThreadClient = async (instanceID, config, getAuthHelper) => {
|
|
|
3001
3001
|
setHttpRequestSuccessCallback,
|
|
3002
3002
|
signIn,
|
|
3003
3003
|
signOut,
|
|
3004
|
-
|
|
3004
|
+
signInSilently,
|
|
3005
3005
|
reInitialize
|
|
3006
3006
|
};
|
|
3007
3007
|
};
|
|
@@ -3340,7 +3340,7 @@ var AuthenticationHelper = class {
|
|
|
3340
3340
|
)
|
|
3341
3341
|
);
|
|
3342
3342
|
}
|
|
3343
|
-
async
|
|
3343
|
+
async signInSilently(constructSilentSignInUrl, requestAccessToken, sessionManagementHelper, additionalParams, tokenRequestConfig) {
|
|
3344
3344
|
if (SPAUtils.isInitializedSilentSignIn()) {
|
|
3345
3345
|
await sessionManagementHelper.receivePromptNoneResponse();
|
|
3346
3346
|
return Promise.resolve({
|
|
@@ -3705,8 +3705,8 @@ var WebWorkerClient = async (instanceID, config, webWorker, getAuthHelper) => {
|
|
|
3705
3705
|
const url = urlObject.toString();
|
|
3706
3706
|
return url;
|
|
3707
3707
|
};
|
|
3708
|
-
const
|
|
3709
|
-
return await _authenticationHelper.
|
|
3708
|
+
const signInSilently = async (additionalParams, tokenRequestConfig) => {
|
|
3709
|
+
return await _authenticationHelper.signInSilently(
|
|
3710
3710
|
constructSilentSignInUrl,
|
|
3711
3711
|
requestAccessToken,
|
|
3712
3712
|
_sessionManagementHelper,
|
|
@@ -3996,7 +3996,7 @@ var WebWorkerClient = async (instanceID, config, webWorker, getAuthHelper) => {
|
|
|
3996
3996
|
setHttpRequestSuccessCallback,
|
|
3997
3997
|
signIn,
|
|
3998
3998
|
signOut,
|
|
3999
|
-
|
|
3999
|
+
signInSilently,
|
|
4000
4000
|
reInitialize
|
|
4001
4001
|
};
|
|
4002
4002
|
};
|
|
@@ -4302,15 +4302,15 @@ var _AsgardeoSPAClient = class _AsgardeoSPAClient {
|
|
|
4302
4302
|
*
|
|
4303
4303
|
* @example
|
|
4304
4304
|
*```
|
|
4305
|
-
* auth.
|
|
4305
|
+
* auth.signInSilently()
|
|
4306
4306
|
*```
|
|
4307
4307
|
*/
|
|
4308
|
-
async
|
|
4308
|
+
async signInSilently(additionalParams, tokenRequestConfig) {
|
|
4309
4309
|
await this.isInitialized();
|
|
4310
4310
|
if (SPAUtils.wasSignInCalled()) {
|
|
4311
4311
|
return void 0;
|
|
4312
4312
|
}
|
|
4313
|
-
return this._client?.
|
|
4313
|
+
return this._client?.signInSilently(additionalParams, tokenRequestConfig).then((response) => {
|
|
4314
4314
|
if (this._onSignInCallback && response) {
|
|
4315
4315
|
this._onSignInCallback(response);
|
|
4316
4316
|
}
|