@asgardeo/vue 0.3.5 → 0.3.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/cjs/index.js CHANGED
@@ -5550,6 +5550,10 @@ var Callback = (0, import_vue39.defineComponent)({
5550
5550
  if (!code && !state && !oauthError) {
5551
5551
  return;
5552
5552
  }
5553
+ if (window.opener) {
5554
+ window.opener.postMessage({ code, error: oauthError, errorDescription, nonce, state }, window.location.origin);
5555
+ return;
5556
+ }
5553
5557
  if (!state) {
5554
5558
  throw new Error("Missing OAuth state parameter - possible security issue");
5555
5559
  }