firebase / firebase/firebase-tools

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)

Open
#6,482 1 comment 0 reactions 0 assignees View on GitHub
emulators: auth type: bug
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### [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.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the listed sign-in and Admin SDK email/phone update steps in the Firebase Auth Emulator, then compare the result with the production behavior described. Done means the emulator requires a new sign-in after the user's email or phone is updated.

Written by the indexing model from the issue text.

Assessment

Tech stack
firebase
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.