You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since User has been declared as a fixed type, it is no longer possible to set the Context created from Auth0ContextInterface<CustomUser extends user> in the context property of Auth0Provider.
This seems to be caused by merging the pull request below.
aki-caffeine
changed the title
Auth0Provider is defined User by let
Auth0Provider does not accept customContext made from CustomUser
Mar 14, 2024
aki-caffeine
changed the title
Auth0Provider does not accept customContext made from CustomUser
Auth0Provider does not accept CustomContext made from CustomUser
Mar 14, 2024
Checklist
Description
Since User has been declared as a fixed type, it is no longer possible to set the Context created from Auth0ContextInterface<CustomUser extends user> in the context property of Auth0Provider.
This seems to be caused by merging the pull request below.
https://github.com/auth0/auth0-react/pull/401/files
Reproduction
I want to set the context to CustomUser, which extends User, as shown below, but I get a type error
Additional context
No response
auth0-react version
2.2.4
React version
18.2
Which browsers have you tested in?
Chrome
The text was updated successfully, but these errors were encountered: