• 0
Sign in to follow this  
Bon

Refresh Token

Question

Buenas.

Estoy intentando entender como funciona el Refresh Token.

Según entiendo de la documentación el Refresh Token permite obtener un nuevo Access_token cuando este último expire. ¿Estoy en lo correcto?

Ahora, yo hago un llamado a:

https://api.mercadolibre.com/oauth/token?grant_type=authorization_code&client_id=APP_ID&client_secret=SECRET_KEY&code=SERVER_GENERATED_AUTHORIZATION_CODE&redirect_uri=REDIRECT_URI

Usando el Refresh token generado manualmente, junto con el APP_ID, SECRET_KEY, etc.

y me genera:

{
	"access_token" : "APP_USR-6092-3246532-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-8035443",
	"token_type" : "bearer",
	"expires_in" : 10800,
	"scope" : "write read"
        "refresh_token" : YYYYYYYY1
}

Ahora, ese refresh_token como lo puedo usar para actualizar el access_token? He visto algunas respuestas pero no me funcionan

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this