Auth0Error can happen where Auth0 still uses these other fields that someone mistakenly removed a couple months ago (in cases like webAuth.login method).
Responses aren't always in format 'error' & 'errorDescription' and the other fields need to be captured.
Example response = HTTP 401 `{"name":"ValidationError","code":"invalid_user_password","description":"Wrong email or password.","statusCode":400}`
Oct commit that mistakenly removed these
c5b6a5e2d5 (diff-7795f2501af1276ff905e366093a998b)
* Including optional properties AuthorizeOptions - acccessType; approvalForce
auth-0.js actually forwards any param you send it (minus a specific black list).
Auth0 Support and Community use these optional params, although they are not specifically called out in the Auth0 API documentation.
Auth0 Support and Community even specify these are needed especially to get Google refresh_tokens (vie email Support Ticket, as well as the Community link below)
https://community.auth0.com/t/cant-get-google-refresh-token-using-auth0-js/11756
* Corrected to use field approvalPrompt
* fixed typo
* add passwordlessLogin to WebAuth
* remove trailing whitespaces from auth0.WebAuth
* Re-arrange the order of the PasswordlessLoginOptions properties to match the declaration in auth0
This commit adds:
- documentation for existing interface options
- missing options from current v.8 of Auth0 for RenewAuthOptions
The documentation and missing fields are based on existing Auth0 documentation
here:
- https://git.io/vFxy3
- https://github.com/auth0/auth0.js/pull/572
Thanks!
This commit updates contract for results of the WebAuth.parseHash call to v.8 of auth0-js.
Here is a link to relevant vanilla JS implementation:
https://git.io/vFNdC
Thanks!
Since everything in `AuthorizeOptions` is optional and in the docs they are using authorize from `WebAuth` without any options, it should be possible to leave them out.
These weak type errors were not caught in TS 2.4 RC. The final TS 2.4
will catch weak type errors with primitives, so this PR fixes those
now-caught errors.