OAuthError is not callable
elstgav opened this issue · 1 comments
elstgav commented
Checklist
- The issue can be reproduced in the auth0-react sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
Introduced in #638; trying to call new OAuthError('name', 'message')
returns the following error:
errors.tsx:10 Uncaught TypeError: Class constructor d cannot be invoked without 'new'
at new OAuthError (errors.tsx:10:1)
at <anonymous>:1:1
In this case d
refers to GenericError
.
Expected result is to return an error object.
Reproduction
- Call
new OAuthError('name', 'message')
Additional context
No response
auth0-react version
2.2.3
React version
17.0.2
Which browsers have you tested in?
Chrome
adamjmcgrath commented
Thanks for reporting @elstgav
Fixed in https://github.com/auth0/auth0-react/releases/tag/v2.2.3