Way to get a call back after successful login via '@auth0/auth0-react'

Please include the following information in your post:

  • @auth0/auth0-react’
    Latest

Hello all,
I am trying to find a way to capture a call back, so after a user successfully logs in, I can send the ID token to my React.Context which wraps it into my axios default headers. However, I can’t seem to find documention on how to perform an action or a callback immediately after a successful login.
Is there a best practice in this space? Any advice would be helpful.
Thank you,
Andrew

Well, I should have kept pluggin away,
How i resolved this was by adding

    const { isAuthenticated, getIdTokenClaims } = useAuth0();

in my globalContext and trapping on if (isAuthenticated) and triggering my header update from there.
Incase somebody in the future see’s this.
Thanks