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

Handle the case when Multiple user object returned while logging in #130

Open
pradumangoyal opened this issue Oct 1, 2020 · 1 comment

Comments

@pradumangoyal
Copy link
Member

This can be a point of discussion, should we return "Invalid credentials" or some more justified message.

Originally posted by @pradumangoyal in #127 (comment)

@ShreyasTheOne
Copy link

The only condition in which multiple objects would be returned is if one's primary phone number is another's secondary number. So if we get multiple objects, we could filter out the one who's primary phone number matches the given username and return the user if it exists.

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