Closed cliffordh closed 4 years ago
Hm.. calling signOut indeed triggers onAuthStateChangedAction
as it seems to work for you, but it does nothing like redirect you to another route...
In your code I can't see anything that would trigger a route change - do you maybe have a listener on your user store object defined somewhere in your views or do you e.g. use any middleware?
@lupas I had a listener in my layout that was causing the redirect. Thanks for the assist. Closing now.
When I call:
I am signed out of Firebase, but my site redirects to the home page when this function executes. I can see that onAuthStateChangedAction in the store on signout. But I can't tell where this redirection behavior is coming from. Any ideas?
This is my store/index.js: