Refresh token
Lấy token mới khi hết hạn sau một thời gian (mặc định: 1 giờ)
/oauth2/token
POST
https://oauth-qc.vinid.dev/oauth2/token
Request Body
Name
Type
Description
redirect_uri
string
client_secret
string
Không cần đối với luồng PKCE
client_id
string
refresh_token
string
grant_type
string
{
"access_token": "string",
"expires_in": 3600,
"id_token": "string",
"refresh_token": "string",
"scope": "openid offline some_scope",
"token_type": "bearer"
}
curl --location --request POST 'https://oauth2-dev.vinid.dev/oauth2/token' \
--form 'grant_type=refresh_token' \
--form 'refresh_token={refresh_token}' \
--form 'client_id={client_id}' \
--form 'redirect_uri=https://your-home-page'
Thời gian hết hạn của refresh_token mặc định là 720 giờ
Last updated
Was this helpful?