Using @auth0/auth0-react and getAccessTokenSilently in useEffect leads to infinite loop

Does adding useRefreshTokensFallback={true} to <Auth0Provider /> help?

I ran into a similar issue and this might help you.

Related thread: Auth0 spa 2.x returning missing_refresh_token - #18 by frederik.prijck