-
-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth using Emulator with demo project #844
Comments
Yes, you can read about it here: https://firebase-php.readthedocs.io/en/stable/testing.html#using-the-firebase-emulator-suite |
Uh.. I think you misunderstood me, I did read the docs I can't find the guide where I can use Firebase Demo Project, yes it work with Real Firebase Project. The code, where in Node.js SDK it work without credentials. $request = CreateUser::new()
->withEmail($email)
->withPhoneNumber($phoneNumber)
->withClearTextPassword($password)
->withDisplayName($faker->name);
$firebaseUser = Firebase::auth()->createUser($request); |
Ah, I understand now, sorry for closing the issue so early 🙏🏻 (it's early here 😅) I think this should be working, I'm running emulator tests with it, but seeing the
I'll try to look into it as soon as I find the time, I'm currently working on the next major release for PHP 8.3, and I do have only limited time... |
@jeromegamez Did you ever find a solution for this? I am running into a similar issue where verifyIdToken() is making calls to google apis even though I'm pointing to the Firebase Emulators. Offline fails with curl error - |
Describe the feature you would like to see
Is it possible to use Firebase Emulator with demo Firebase project, it would be useful for CI testing where the current setup require creating new Firebase project and issue service account.
https://firebase.google.com/docs/emulator-suite/connect_auth#choose_a_firebase_project
Example from using official Admin SDK for Node.js, it works without requiring internet connection or having Firebase project.
firebase emulators:start --project=demo-project
The text was updated successfully, but these errors were encountered: