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

Added support for /users-by-email method. #218

Merged
merged 2 commits into from
Nov 8, 2017
Merged

Conversation

kopertop
Copy link
Contributor

The /users-by-email API is preferred over using the Search API when working in the Authentication workflow. This is because the Search API uses Elastic Search and is less reliable than the single-index lookup provided by /users-by-email

This new API allows you to use a simplified API:

auth0.getUsersByEmail('someone@somewhere.com')

I copied the getUsers method style, and did separate testing of my own to verify this works. Feel free to make any suggestions or improve.

This is handled by a new ```getUsersByEmail``` method
@luisrudge
Copy link
Contributor

Thanks for the PR. Can you also add a test so we make sure we don't add bugs in the future? Thanks!

I just copied and modified the tests from getAll, so hopefully this is what was
expected!
@kopertop
Copy link
Contributor Author

Sure thing, I just added in the tests that were used by getAll, so hopefully that's OK!

@hzalaz hzalaz merged commit 80c9b0c into auth0:master Nov 8, 2017
@jsmpereira
Copy link
Contributor

Is there an ETA on releasing this? 😁

@westy92
Copy link

westy92 commented Dec 6, 2017

@hzalaz It has been nearly a month since this was merged. Any chance for a release?

@hzalaz hzalaz added this to the v2.9.0 milestone Dec 7, 2017
@westy92
Copy link

westy92 commented Dec 7, 2017

Released in 2.9.0. Thank you, @hzalaz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants