Skip to content

Latest commit

 

History

History
81 lines (73 loc) · 1.45 KB

refresh_token.md

File metadata and controls

81 lines (73 loc) · 1.45 KB

Refresh Token

POST /oauth/token

Description

exchange access token by refresh token

Request

Query Parameters

Name Required Description
grant_type yes it must be refresh_token
refresh_token yes code from authorization code response
client_id yes your client id
client_secret yes your client secret

Example

GET /oauth/token?grant_type=refresh_token&refresh_token=tGzv3JOkF0XG5Qx2TlKWIA&client_id=ABC123&client_secret=QQYbY

Response

Formats

  • json

Structure

Field Name Type Value Description
access_token string used to access user resource
token_type string it must be Bearer
expires_in number expire seconds for access token

Example

    {
        "access_token" : "2YotnFZFEjr1zCsicMWpAA",
        "token_type" : "Bearer",
        "expires_in" : 28800
    }