Skip to content

Not able to understand what needs to be in config for real firebase project #9

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

Closed
santoshv98 opened this issue May 30, 2023 · 1 comment

Comments

@santoshv98
Copy link

santoshv98 commented May 30, 2023

Great job with the library, impressive

  1. Can you give an example of what needs to be really mentioned in the config ? When we setup firebase app and pull out the json , we have "apiKey", "authDomain", projectId (this is clear), "appId" and "measurementId". Not really understanding what among these need to go into wrangler.toml. In your example, you mentioned previewId and Id. What would they map to?
  2. How does it determine if I don't intend to run an emulator? Just leave out FIREBASE_AUTH_EMULATOR_HOST to empty string?
  3. If I have a worker to run on multiple firebase projects, how do I handle this scenario?

One specific example with a firebase project would be really helpful

@Code-Hex
Copy link
Owner

@santoshv98 Thanks!

  1. I put example directory you may know. only required projectId.
  2. This library determines that you are not using an emulator if FIREBASE_AUTH_EMULATOR_HOST is empty or undefined. code is here.
  3. I'm sorry. I can't answer because I don't know what kind of scenario you are using multiple projects in the first place. But You might need 3 workers because JWT validation is different for each project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants