auth0 / node-auth0

Node.js client library for the Auth0 platform.
MIT License
630 stars 309 forks source link

Handle duplicate user sign up #886

Closed frederikprijck closed 1 year ago

frederikprijck commented 1 year ago

Changes

/dbconnections/signup doesn’t always return an error as described in the Errors section of auth api docs. If you’re signing up a duplicate user then it’ll be an error with a shape like so {"name":"BadRequestError","code":"invalid_signup","description":"Invalid sign up","statusCode":400}

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

Checklist