Cannot switch from one google account's firebase projects to another google account's firebase projects
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:
-
flutterfire configureand signed into google account "a" [email protected]. - Was able to choose an existing project for "a". No problems.
- 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. - 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.