Auth0 Home Blog Docs

Unable to get id token from refresh token obtain via Lock

refresh-tokens
auth0-lock
auth0lock

#1

Hello, we are trying to get a newly issued id token from refresh token obtain via auth0 lock. When trying to get a new token via refresh token, we’re getting only access_token and not id_token.

Although, by using the refresh token obtain by using the following payload, we’re able to get both id_token and access_token:

{
	"grant_type": "http://auth0.com/oauth/grant-type/password-realm",
	"client_id": "<client_id>",
	"realm": "<connection_name>",
	"username": "<username>",
	"password": "<password>",
	"scope": "openid full_scope offline_access",
	"response_type": "token id_token"
}

We’re using the same scope and response_type in the auth0 lock options. What are we missing here?


#2