flutterfire_cli icon indicating copy to clipboard operation
flutterfire_cli copied to clipboard

Cannot switch from one google account's firebase projects to another google account's firebase projects

Open Zelfapp opened this issue 3 years ago • 0 comments

I have two firebase projects that are in two separate google accounts. Let's call them "a" and "b".

Following the FlutterFire CLI instructions.

From the directory for project "a" I did the following:

  1. flutterfire configure and signed into google account "a" [email protected].
  2. Was able to choose an existing project for "a". No problems.
  3. Still in directory "a" I ran firebase login:add [email protected], to add my 2nd google account that can be used, and signed in successfully.
  4. Then from directory "b" I ran flutterfire configure --account [email protected], but I get this error: FirebaseProjectNotFoundException: Firebase project id "myprojectid" could not be found on this Firebase account.

I do not see in flutterfire configure --help any information on how to switch from one google account to another google account when in a project directory.

There should be a simple way to get projects from the right google account in a project directory. Maybe there is and I'm just missing it or doing something wrong.

I've also asked this question on SO.

Also note: If I try to run firebase [email protected] init rather than flutterfire configure I get Error: HTTP Error: 403, The caller does not have permission, but my project "b" does exist and I've check IAM and service accounts and they appear to have all the correct permissions.

Zelfapp avatar Apr 09 '22 14:04 Zelfapp