After the user signs in, we can use getAccessTokenSilently and get access token, but how to get refresh token? I can see in the networks tab, there is a page with service worker that gives the response in json that contains refresh_token along with other things.
So, in order to get the refresh token, you need to first pass useRefreshToken={true}. And then, pass cacheLocation="localstorage" to the Auth0Provider. This will store the tokens and other response in the localStorage.
And then, you need to use LocalStorageCache class to access the keys and its value.