Have you configured your app to use refresh tokens? You need to tell the SDK to request one. From our docs:
The
getAccessTokenSilently()
method can renew the access and ID token for you using refresh tokens. To get a refresh token when a user logs in, passuseRefreshTokens={true}
as a prop toAuth0Provider
.