I’m using the latest version of auth0-node (4.2.0) to do a refresh grant exactly as shown in the example:
import { AuthenticationClient } from 'auth0';
const auth = new AuthenticationClient({
domain: '{YOUR_TENANT_AND REGION}.auth0.com',
clientId: '{YOUR_CLIENT_ID}',
clientSecret: '{YOUR_CLIENT_SECRET}',
});
// Get a new access token
const {
data: { access_token },
} = await auth.oauth.refreshTokenGrant({
refresh_token: refreshToken,
});
I’ve populated domain with the tenant and region subdomain as shown in the example. The access token returned is missing the payload:
"access_token": "[...]29tLyJ9..JdBYlv[...]", // <- token is missing payload: ".."