I have a problem with permissions after using firebase updateEmail for a user.
Many of my collections roles have a 'read' like:
if request.auth != null && request.auth.token.email_verified == true;
to only let in those users who have confirmed their e-mail during registration.
The problem is when logged in user changes his email. The interceptor reacts with "Missing or insufficient permissions. I would like somehow to log out the user immediately, right after changing the password, so that the interceptor will not be able to react. Can I react somehow before interceptor? Any idea? Or maybe some role update will be better?
UpdateEmail (https://firebase.google.com/docs/auth/web/manage-users) returns the promise and I can't log out of the user in then/catch