Hello guys.
I’m using Auth0 with ReactJS, do you know how I can get the logged in token after using loginWithRedirect()?
Hello guys.
I’m using Auth0 with ReactJS, do you know how I can get the logged in token after using loginWithRedirect()?
Hi there @luan.t44 welcome to the community!
Tokens returned will by default be stored in memory - Since loginWithRedirect() does not handle these tokens directly, you will want to take a look at the methods getAccessTokenSilently() (most common) and getAccessTokenWithPopup() outlined here:
If you haven’t already, I definitely recommend taking a look at our React sample app as both are used in externalApi.js.
Hope this helps to clarify!