@zvonimirsun/iszy-nuxt-auth-layer 0.2.0 → 0.2.2

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.
@@ -158,10 +158,7 @@ async function thirdPartyLoginCallback(e: MessageEvent<{
158
158
  message?: string
159
159
  }>) {
160
160
  const page = e.source as Window
161
- if (e.origin !== window.location.origin) {
162
- return
163
- }
164
- if (e.data.success == null) {
161
+ if (e.origin !== window.location.origin || e.data.success == null) {
165
162
  return
166
163
  }
167
164
  loading.value = false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zvonimirsun/iszy-nuxt-auth-layer",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "ISZY Nuxt 应用共享认证 layer。",