Permission denied to access property "__v_isRef" on cross-origin object
Posted: 20 Jul 2022, 23:09
Hi,
First post. Hopefully someone can find that I am doing something wrong. I am using firebase authentication and firestore.
When I sign in the first time using signInWithPopup everythings works as expected.
When I sign out, then try and sign back in using signInWithPopup I get an error
If I choose to use signInWithEmailAndPassword everything works. I can sign in, sign out, and then sign back in again.
Here is the code. In this version I have a bunch of then's strung together to see if it is a timing issue. I didn't help
"primevue": "^3.15.0"
"vue": "^3.2.25",
"vue-router": "^4.1.2"
"vite": "^3.0.2"
I have the same issue running local or if I build and push to firebase hosting. Any ideas?
First post. Hopefully someone can find that I am doing something wrong. I am using firebase authentication and firestore.
When I sign in the first time using signInWithPopup everythings works as expected.
When I sign out, then try and sign back in using signInWithPopup I get an error
Code: Select all
DOMException: Permission denied to access property "__v_isRef" on cross-origin object subscribe.ts:239:20
sendOne subscribe.ts:239
(Async: promise callback)
Here is the code. In this version I have a bunch of then's strung together to see if it is a timing issue. I didn't help
Code: Select all
googleSignIn() {
this.$toast.add({ severity: 'info', summary: 'Loading', detail: 'Loading. Please wait' });
const auth = getAuth();
signInWithPopup(auth, this.store.provider)
.then((result) => {
const user = result.user;
this.store.user = user;
this.store.getUserMeta()
.then(() => {
this.store.getVehicles()
.then(() => {
this.toast.removeAllGroups();
this.router.push("/");
console.log("route pushed");
})
})
})
}
"vue": "^3.2.25",
"vue-router": "^4.1.2"
"vite": "^3.0.2"
I have the same issue running local or if I build and push to firebase hosting. Any ideas?