@asgardeo/react 0.23.2 → 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 +2 -2
package/dist/index.js
CHANGED
|
@@ -11750,6 +11750,7 @@ var BaseSignUpContent2 = ({
|
|
|
11750
11750
|
}
|
|
11751
11751
|
const { code, state } = event.data;
|
|
11752
11752
|
if (code && state) {
|
|
11753
|
+
hasProcessedCallback = true;
|
|
11753
11754
|
const payload = {
|
|
11754
11755
|
...currentFlow.executionId && { executionId: currentFlow.executionId },
|
|
11755
11756
|
action: "",
|
|
@@ -13266,6 +13267,10 @@ var Callback = ({ onNavigate, onError }) => {
|
|
|
13266
13267
|
const nonce = urlParams.get("nonce");
|
|
13267
13268
|
const oauthError = urlParams.get("error");
|
|
13268
13269
|
const errorDescription = urlParams.get("error_description");
|
|
13270
|
+
if (window.opener) {
|
|
13271
|
+
window.opener.postMessage({ code, error: oauthError, errorDescription, nonce, state }, window.location.origin);
|
|
13272
|
+
return;
|
|
13273
|
+
}
|
|
13269
13274
|
if (!state) {
|
|
13270
13275
|
throw new Error("Missing OAuth state parameter - possible security issue");
|
|
13271
13276
|
}
|