Why am I getting Missing Refresh Token

I am trying to do the following

      <Auth0Provider
            domain={config.auth.domain}
            clientId={config.auth.clientId}
            useRefreshTokens={true}
            cacheLocation={"localstorage"}
            authorizationParams={{
                redirect_uri: window.location.origin,
                audience: config.auth.audience,
                scope: config.auth.scope
            }}
        >

       

But when I run the app I am getting

Error fetching token: Error: Missing Refresh Token (audience: 'https://thejackiegleason.com', scope: 'openid profile email offline_access')
    React 13
    Oj token.mjs:6
    start xstate-actors.esm.js:787
    start raise-c17ec2bc.esm.js:833
    start xstate.esm.js:493
    start xstate.esm.js:491

How would I go about debugging?


The config looks correct

Hi @jackiegleason,

The offline_access grant seems to be missing. In order to receive refresh tokens you’ll need to go to your app > Settings > Advanced settings > Grant Types and enable “Refresh Token”

If you have any other questions feel free to reach out!

Have a good one,
Vlad