Quickstarts react auth0 api issue, "user is udefined"

Please include the following information in your post:

  • Which SDK this is regarding: @auth0/auth0-react@1.2.0, @auth0/auth0-spa-js@^1.13.1
  • Platform Version: npm 6.14.08
  • Code Snippets/Error Messages/Supporting Details/Screenshots:

It’s funny and I believe I found the resolution by adding the getAccessTokenSilently to the deps of useEffect. As you can see in @auth0/auth0-react