Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Add support for firebase auth emulator #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

danecando
Copy link
Owner

@danecando danecando commented Aug 20, 2022

Changes

  • Adds isEmulator option to support firebase auth emulator

Notes

Uses jwt.decode for emulator tokens instead of actually trying to verify them.

I'm realizing it might be a pain to configure options for every api route that you wrap with withFirebaseUser. Maybe I should add an initialize function that returns the withFirebaseUser HOF with the options applied so this only needs to be done once. This would be a breaking change.

Testing

I have not tested this yet. Going to make sure it works before I merge and publish to npm

Closes #2

@danecando danecando self-assigned this Aug 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to get 'kid' in header when testing with firebase emulator?
1 participant