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

Create More Auth Utility functions to convert between email and UID #63

Closed
keiffer01 opened this issue Jul 14, 2020 · 0 comments · Fixed by #100
Closed

Create More Auth Utility functions to convert between email and UID #63

keiffer01 opened this issue Jul 14, 2020 · 0 comments · Fixed by #100
Assignees
Labels
enhancement New feature or request

Comments

@keiffer01
Copy link
Collaborator

keiffer01 commented Jul 14, 2020

Issue summary

Utility functions need to be made that allow any user's UID to be retrieved given their email and vice versa. This is to be used when storing collaborators for a trip, so that users can input emails for collaborators and developers can convert these to UIDs to store instead. Then when retrieving a trip, the UIDs can be converted back to emails. The purpose of this is to prevent a change of email from locking a user out of their trips. This will likely need to use the Firebase Admin SDK and possibly be implemented in a Java servlet.

The specific names of the functions are:

  • getUserEmailArrFromUserUidArr(uid)
  • getUserUidArrFromUserEmailArr(email)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant