Hi @lm2000! I can’t tell from the code snippets you provided, but are you also ensuring that isLoading
is false with the auth0-react SDK?
According to the Auth0 React Quickstart docs:
Ensure that the SDK has completed loading before accessing the
isAuthenticated
property, by checking thatisLoading
isfalse
.
You can also find an example in the auth0-react SDK docs here: @auth0/auth0-react