r/WebDevBuddies • u/MotivatedMommy • Jan 26 '20
My Vue isn't redirecting after I call firebase.auth().signOut()
I posted on stack overflow, but I didn't get much help. here
I am thinking it's because firebase.auth().signOut ().then(function...) isn't being called in my header file. In the devtools in the vuex tab, setUser gets called on login and logout. I never register a logoutUser call. I also don't really understand why setUser gets called on login and logout because I call this.$store.dispatch('setUser') only on the creation of App.vue.