Skip to content
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

Firebase Emulator doesn't sign idToken, trips web-auth-library up #27

Open
CmdrDats opened this issue Feb 15, 2024 · 0 comments
Open

Firebase Emulator doesn't sign idToken, trips web-auth-library up #27

CmdrDats opened this issue Feb 15, 2024 · 0 comments

Comments

@CmdrDats
Copy link

I'm using the Firebase Authentication Emulator, and kept getting this error locally from my CloudFlare Worker:

[FetchError: Public key "undefined" not found.]

After digging through the code a while and manually using jose to decode the idToken header (where the "undefined" comes from), I discovered that there is no kid on the locally generated idToken - more info here firebase/firebase-tools#2764

I could workaround this by using jose directly when in emulator mode, but it would be ideal if I could provide an 'emulator' flag in the options and the library would simply skip the signing check? A note about the emulator in the readme would also help future users.

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

1 participant