@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.
- package/app/pages/login.vue +1 -4
- package/package.json +1 -1
package/app/pages/login.vue
CHANGED
|
@@ -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
|