Hi,
I have rules that protect data from unauthorized access, e.g. a user has to login before she can read certain records.
I’ve implemented the “logout” action on my protected route in a way that a user is redirected to the application index route, where only public data is shown, and then signed out (torii session is closed with `this.get('session').close()`).
When I perform that action, I’m seeing permission errors, indicating that the current user doesn’t have access to certain records.
Am I running into some sort of race condition, where I’m closing my authentication session and some (private) Firebase data is still “hanging around”, even if I’m on a route where I wouldn’t expect it to?
I was experimenting with `store.unloadAll()` or timeout hacks, with basically the same result, meaning running into the same errors.
Any advice will be greatly appreciated!
Thanks,
Christian