Firebase-Admin when updating user’s email user gets logout if page is refreshed

When updating user's email using admin.auth().updateUser({email: newEmail}) the user's email gets updated (as an authentication provider) but whenever I refresh the page the user gets logout. Is there a way I can prevent that from happening and keeping the user logged in after its email gets updated?

Read more here:

Content Attribution

This content was originally published by Frida Gutiérrez Mireles at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: