Skip to content

Commit bb3525a

Browse files
committed
fix(app/account): delay 1s to redirect to external auth when unauthorizated
1 parent c7f1db6 commit bb3525a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

@ecomplus/storefront-app/src/views/js/Account.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ export default {
8989
created () {
9090
const isExternalAuth = Boolean(window.$firebaseConfig && window.$firebaseConfig.authDomain)
9191
if (isExternalAuth && !this.ecomPassport.checkAuthorization()) {
92-
window.location.href = '/app/account'
92+
setTimeout(() => {
93+
if (this.ecomPassport.checkAuthorization()) return
94+
window.location.href = '/app/account'
95+
}, 1000)
9396
}
9497
},
9598

0 commit comments

Comments
 (0)