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

OAuthError is not callable #645

Closed
6 tasks done
elstgav opened this issue Nov 1, 2023 · 1 comment
Closed
6 tasks done

OAuthError is not callable #645

elstgav opened this issue Nov 1, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@elstgav
Copy link

elstgav commented Nov 1, 2023

Checklist

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

  1. 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

@elstgav elstgav added the bug Something isn't working label Nov 1, 2023
@adamjmcgrath
Copy link
Contributor

Thanks for reporting @elstgav

Fixed in https://github.com/auth0/auth0-react/releases/tag/v2.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants