@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/index.js CHANGED
@@ -5515,6 +5515,10 @@ var Callback = defineComponent28({
5515
5515
  if (!code && !state && !oauthError) {
5516
5516
  return;
5517
5517
  }
5518
+ if (window.opener) {
5519
+ window.opener.postMessage({ code, error: oauthError, errorDescription, nonce, state }, window.location.origin);
5520
+ return;
5521
+ }
5518
5522
  if (!state) {
5519
5523
  throw new Error("Missing OAuth state parameter - possible security issue");
5520
5524
  }