@asgardeo/react 0.23.3 → 0.23.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 +5 -0
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +5 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -11809,6 +11809,7 @@ var BaseSignUpContent2 = ({
|
|
|
11809
11809
|
}
|
|
11810
11810
|
const { code, state } = event.data;
|
|
11811
11811
|
if (code && state) {
|
|
11812
|
+
hasProcessedCallback = true;
|
|
11812
11813
|
const payload = {
|
|
11813
11814
|
...currentFlow.executionId && { executionId: currentFlow.executionId },
|
|
11814
11815
|
action: "",
|
|
@@ -13316,6 +13317,10 @@ var Callback = ({ onNavigate, onError }) => {
|
|
|
13316
13317
|
const nonce = urlParams.get("nonce");
|
|
13317
13318
|
const oauthError = urlParams.get("error");
|
|
13318
13319
|
const errorDescription = urlParams.get("error_description");
|
|
13320
|
+
if (window.opener) {
|
|
13321
|
+
window.opener.postMessage({ code, error: oauthError, errorDescription, nonce, state }, window.location.origin);
|
|
13322
|
+
return;
|
|
13323
|
+
}
|
|
13319
13324
|
if (!state) {
|
|
13320
13325
|
throw new Error("Missing OAuth state parameter - possible security issue");
|
|
13321
13326
|
}
|