Auth0 Home Blog Docs

Renewal Token ID with Refresh Token

refresh_token
chrome-extension

#1

Hello,

I want to refresh the token as explained here (to regenerate the token ID before it expires): https://auth0.com/docs/tokens/refresh-token/current#use-a-refresh-token
But I can’t get a new token ID, while “openid offline_access” is present in the scope.

Here is an example of an answer:

{
“access_token”: “GwcapevGAi2DT0fl4Hp-S8u4adwCidZa”,
“expires_in”: 86400,
“token_type”: “Bearer”
}

And my code :

let options = {
  scope: 'openid profile offline_access',
  device: 'chrome-extension'
};

new Auth0Chrome(Variables.AUTH0_DOMAIN, Variables.AUTH0_CLIENT_ID)
.authenticate(options)
.then(result => {
  // Process
});

Do you have an explanation, please ?


#2

Is this a bug or a configuration problem?