You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure application to connect to Firebase Auth emulator
Log into application using "google auth" credentials
Unlink "google auth" credentials from the user by calling
firebase.auth().currentUser.unlink('google.com')
Relink "google auth" credentials to the user by calling
const googleProvider = new firebase.auth.GoogleAuthProvider()
firebase.auth().currentUser.linkWithRedirect(googleProvider)
Relevant Code:
// IMPORTANT: make sure you are connected to the emulator!!!importfirebasefrom'firebase/app'constprovider=newfirebase.auth.GoogleAuthProvider// This happens out of bandauth.signInWithRedirect(provider)// I don't think this is exceptional to me unlinking and// relinking, but just in case...asyncfunctionunlinkAndRelink(){awaitfirebase.auth().currentUser.unlink('google.com')awaitfirebase.auth().currentUser.linkWithRedirect(provider)}
Results
{"error":{"code":400,"message":"API key not valid. Please pass a valid API key.","errors":[{"message":"API key not valid. Please pass a valid API key.","domain":"global","reason":"badRequest"}],"status":"INVALID_ARGUMENT"}}"
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Steps to reproduce:
Configure application to connect to Firebase Auth emulator
Log into application using "google auth" credentials
Unlink "google auth" credentials from the user by calling
Relevant Code:
Results
Console:
auth.esm.js?b7aa:219 GET https://www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig?key=fake-api-key&cb=1610124371002 400
The text was updated successfully, but these errors were encountered: