Error: Missing Refresh Token

Last Updated: Oct 31, 2024

Overview

When attempting to log in, users are seeing the following error in the console:

runtime-core.esm-bundler.js:244 Error: Missing Refresh Token (audience: ‘https://********.us.auth0.com/api/v2/’, scope: ‘openid auth talent offline_access’)

Applies To

  • Refresh Token

Cause

Missing audience parameter in the /authorize request.

Solution

To accomplish the refresh token on the login flow, it is recommended that one of the API Identifiers be used as the audience value.

It should look like the following:

https://{yourDomain}/authorize?
    response_type=code& 
    code_challenge={codeChallenge}&
    code_challenge_method=S256&
    client_id={yourClientId}&
    redirect_uri={yourCallbackUrl}&
    scope=offline_access&
    audience={apiAudience}&
    state={state}