Firebase CLI redirect_uri_mismatch on login

Viewed 1034

Cannot log in to the firebase CLI.

firebase login 

Generates the following error prompt in browser:

The redirect URI in the request, http://localhost:9005, does not match the ones authorized for the OAuth client. Visit https://console.developers.google.com/apis/credentials/oauthclient/...?project=... to update the authorized redirect URIs.

Obesrvations:

  • http://localhost:9005 and every single possible variation including trailing slashes and the https protocol is listed under the web oauth client

  • the ?project=xxx is pointing towards the wrong project ID

firebase login:ci --interactive and firebase login --reauth yield exactly the same result.

The github issue is being ignored. I'd really like to use the cloud function feature

1 Answers

The solution is to use the following command instead:

firebase login --no-localhost
Related