@bagelink/auth 1.21.12 → 1.21.18

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.cjs CHANGED
@@ -1007,7 +1007,7 @@ function handleSsoPopup() {
1007
1007
  try {
1008
1008
  window.opener.postMessage(
1009
1009
  { type: "auth:complete", provider, code: code || void 0, state, error: error || void 0 },
1010
- window.location.origin
1010
+ "*"
1011
1011
  );
1012
1012
  } catch {
1013
1013
  }
package/dist/index.mjs CHANGED
@@ -1005,7 +1005,7 @@ function handleSsoPopup() {
1005
1005
  try {
1006
1006
  window.opener.postMessage(
1007
1007
  { type: "auth:complete", provider, code: code || void 0, state, error: error || void 0 },
1008
- window.location.origin
1008
+ "*"
1009
1009
  );
1010
1010
  } catch {
1011
1011
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/auth",
3
3
  "type": "module",
4
- "version": "1.21.12",
4
+ "version": "1.21.18",
5
5
  "description": "Bagelink auth package",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
package/src/sso.ts CHANGED
@@ -661,7 +661,7 @@ export function handleSsoPopup(): boolean {
661
661
  try {
662
662
  window.opener.postMessage(
663
663
  { type: 'auth:complete', provider, code: code || undefined, state, error: error || undefined },
664
- window.location.origin,
664
+ '*',
665
665
  )
666
666
  } catch {
667
667
  // Opener gone or cross-origin — the opener's polling fallback still works.