Auth emulator not used with currentUser.linkWithPopup (original) (raw)

[REQUIRED] Describe your environment

[REQUIRED] Describe the problem

currentUser.linkWithPopup doesn't use auth emulator, instead going to accounts.google.com

Steps to reproduce:

Enable emulator using auth.useEmulator(...)
Login with auth.signInAnonymously()
Attempt to link with popup

auth.currentUser.linkWithPopup(new firebase.auth.GoogleAuthProvider())

PROBLEM:

Screen Shot 2021-05-07 at 12 48 54 AM

Note: javascript auth.signInWithPopup(new firebase.auth.GoogleAuthProvider()) (skipping anonymous login) works as desired:
Screen Shot 2021-05-07 at 12 49 25 AM