@asgardeo/browser 0.1.4 → 0.1.6
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 +1 -1
- package/dist/__legacy__/helpers/authentication-helper.d.ts +1 -1
- package/dist/__legacy__/models/client.d.ts +1 -1
- package/dist/__legacy__/models/http-client.d.ts +1 -1
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2961,7 +2961,7 @@ var MainThreadClient = async (instanceID, config, getAuthHelper) => {
|
|
|
2961
2961
|
const getCrypto = async () => _authenticationHelper.getCrypto();
|
|
2962
2962
|
const getIdToken = async () => _authenticationHelper.getIdToken();
|
|
2963
2963
|
const getOpenIDProviderEndpoints = async () => _authenticationHelper.getOpenIDProviderEndpoints();
|
|
2964
|
-
const getAccessToken = async () => _authenticationHelper.getAccessToken();
|
|
2964
|
+
const getAccessToken = async (sessionId) => _authenticationHelper.getAccessToken(sessionId);
|
|
2965
2965
|
const getStorageManager = async () => _authenticationHelper.getStorageManager();
|
|
2966
2966
|
const getConfigData = async () => _dataLayer.getConfigData();
|
|
2967
2967
|
const isSignedIn = async () => _authenticationHelper.isSignedIn();
|
|
@@ -3463,8 +3463,8 @@ var AuthenticationHelper = class {
|
|
|
3463
3463
|
async getOpenIDProviderEndpoints() {
|
|
3464
3464
|
return this._authenticationClient.getOpenIDProviderEndpoints();
|
|
3465
3465
|
}
|
|
3466
|
-
async getAccessToken() {
|
|
3467
|
-
return this._authenticationClient.getAccessToken();
|
|
3466
|
+
async getAccessToken(sessionId) {
|
|
3467
|
+
return this._authenticationClient.getAccessToken(sessionId);
|
|
3468
3468
|
}
|
|
3469
3469
|
async getIDPAccessToken() {
|
|
3470
3470
|
return (await this._storageManager.getSessionData())?.access_token;
|
|
@@ -4652,7 +4652,7 @@ var _AsgardeoSPAClient = class _AsgardeoSPAClient {
|
|
|
4652
4652
|
*
|
|
4653
4653
|
* @preserve
|
|
4654
4654
|
*/
|
|
4655
|
-
async getAccessToken() {
|
|
4655
|
+
async getAccessToken(sessionId) {
|
|
4656
4656
|
await this._validateMethod();
|
|
4657
4657
|
if (this._storage && [("webWorker" /* WebWorker */, "browserMemory" /* BrowserMemory */)].includes(this._storage)) {
|
|
4658
4658
|
return Promise.reject(
|
|
@@ -4664,7 +4664,7 @@ var _AsgardeoSPAClient = class _AsgardeoSPAClient {
|
|
|
4664
4664
|
);
|
|
4665
4665
|
}
|
|
4666
4666
|
const mainThreadClient = this._client;
|
|
4667
|
-
return mainThreadClient.getAccessToken();
|
|
4667
|
+
return mainThreadClient.getAccessToken(sessionId);
|
|
4668
4668
|
}
|
|
4669
4669
|
/**
|
|
4670
4670
|
* This method return a Promise that resolves with the idp access token.
|