I created my first web app using Firebase and implemented user auth using FirebaseUI. In my Firebase console, I can see the Users table in the Authentication tab being created with a unique Identifier (phone number, e-mail). My Firebase project is also connected to my GCP project.
How can I see my Firebase app’s table of users in GCP? Ideally, I would like to have that in a Datastore service or similar. Is there a way to sync users between Firebase and GCP? I need that, to allow my backend application in Cloud Run can do a quick lookup (based on the user’s Identifier).
So far, I could only find a function to check if the user exists in the Firebase’s Users table directly:
from firebase_admin import auth, credentials
def is_user_in_firebase(identifier: str) -> bool:
try:
auth.get_user_by_phone_number(identifier)
except auth.UserNotFoundError:
return False
else:
return True
scalar_boson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.