Autenticação
Renova o par de tokens pelo refresh token
POST
O par usado deixa de valer, inclusive o access token dele.
application/json- body
refresh_token*stringPar de tokens. Não guarde em cache (Cache-Control: no-store).
application/json- response
access_token*stringtoken_type*"Bearer"Valores
"Bearer"expires_in*integerValidade do access token, em segundos.
refresh_token*stringrefresh_expires_in*integerValidade do refresh token, em segundos.
curl -X POST "https://example.com/auth/refresh" \ -H "Content-Type: application/json" \ -d '{ "refresh_token": "string" }'{ "access_token": "mda_3f1c…", "token_type": "Bearer", "expires_in": 3600, "refresh_token": "mdr_9a0e…", "refresh_expires_in": 2592000}