firebase / firebase-tools

The Firebase Command Line Tools
MIT License
3.98k stars 919 forks source link

Auth Emulator does not need re-sign in when users email/phone is updated using the admin sdk. (Behavior conflict between emulator and real env) #6482

Open vajahath opened 8 months ago

vajahath commented 8 months ago

[REQUIRED] Environment info

firebase-tools: 12.7.0

Platform: MacOS

[REQUIRED] Test case

[REQUIRED] Steps to reproduce

  1. Sign in with custom token in Firebase Emulator
  2. Update the signed in users email address/phone using the admin sdk
  3. Without re-sign again, the user is still signed in Emulator. In original firebase environment, updating email/phone requires a re-sign in (like signInWith...())
  4. Thus there is a functionality conflict between emulator and real environment.

[REQUIRED] Expected behavior

Once the email/phone is updated, requires a re-sign in.

Related: https://stackoverflow.com/a/60973929/3370568

[REQUIRED] Actual behavior

Emulator env does not need re-sign in.

google-oss-bot commented 8 months ago

This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.