After I manually enable Identity Platform using the GCP GUI console, this command starts working.
Note: I am using this command on a newly created GCP project I'm creating using firebase projects:create command, using an external service account that has permissions to create/update all GCP projects in my organization
I am trying to enable
Firebase Authentication
in my project, and to addPhone Auth
to it, via API (without using the GUI console).I am using the
Service Usage API
in order to enableIdentity Toolkit
, and then trying to useIdentity Toolkit API
in order to add thePhone Auth
.I am enabling
Identity Toolkit
via theService Usage API
like this (POST request):URL:
Body:
And indeed, after running this request I see in GCP console that
Identity Toolkit
has been enabled.After that, I try to update the config using
Identity Toolkit API
, like this (PATCH request):URL:
Body:
But for some reason, I receive an error saying:
After I manually enable Identity Platform using the GCP GUI console, this command starts working.
Note: I am using this command on a newly created GCP project I'm creating using
firebase projects:create
command, using an external service account that has permissions to create/update all GCP projects in my organization