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

Fallback to Developer Email When Creating Firebase Account #789

Merged
merged 5 commits into from
Jun 15, 2024

Conversation

ijemmao
Copy link
Collaborator

@ijemmao ijemmao commented Jun 15, 2024

Describe your changes

The developerAuthorization middleware will now look up Developer documents living in MongoDB by email rather than Firebase Id. This is a better approach because in the case where a developer already has a Developer account with the Igbo API (a.k.a. they have a Developer document in our MongoDB database) we can look up their existing Developer account with the newly created Firebase account's email.

If we continue to look up developers by their Firebase Id, we wouldn't be able to find any Developer document since the firebaseId on an existing Developer document wouldn't match with a newly created Firebase Id.

Issue ticket number and link

N/A

Motivation and Context

Fixing a big bug that would have prevented many existing Igbo API Developers from logging into the dashboard and seeing their personal information

How Has This Been Tested?

Updated existing Jest unit tests.

Screenshots (if appropriate):

N/A

@ijemmao ijemmao merged commit 59f7ecf into master Jun 15, 2024
4 checks passed
@ijemmao ijemmao deleted the io/fallback-creating-firebase-user branch June 15, 2024 15:55
ijemmao added a commit that referenced this pull request Jun 16, 2024
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

Successfully merging this pull request may close these issues.

1 participant