Problem statement
When attempting to log in, but our 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/'](https://%2A%2A%2A%2A%2A%2A%2A%2A.us.auth0.com/api/v2/');, scope: 'openid auth talent offline_access')
Cause
- Missing audience parameter in the
/authorize
request.
Solution
We recommend using one of your API Identifiers as the audience value to accomplish the refresh token on the login flow.
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}