Refresh An Expired Access Token

Using the authorization flow, on the assignment of a valid access_token you will also receive a refresh_token. You may exchange this refresh token for a fresh access token without having to send the user through the entire authorization flow again for up to 30 days from the initial access_token assignment.


End Point


Query Parameters

client_id:Service Key of your Service. This is found on the Keys tab of your Service details in the LaunchKey Dashboard.
client_secret:The unique secret key found on your app settings page. Ensure this remains completely secret!
redirect_uri:The URI a user will be redirected to after authorization. This URI will capture the access token and store the token along with the user's login status.
refresh_token:Refresh token from endpoint response




If successful, the response will have the status code of 200 and a JSON object in the body with the attributes specified below.


access_token:The authenticating element for a user's session
expires_in:Seconds until expiration
refresh_token:Used to refresh session and get a new access_token without going through the entire authorization flow again


    "access_token": "ACCESS_TOKEN",
    "token_type": "Bearer",
    "expires_in": 3600,
    "refresh_token": "REFRESH_TOKEN"

User Contributed

LaunchKey links to user contributed code as a resource to its community. LaunchKey does not in any way guarantee or warrant the quality and security of these code bases. User contributed code is supported by the creators. If you do find a link from the site to user contributed code that is malicious or inappropriate in any way, please report that link to LaunchKey immediately and we will investigate the claim. Submit any issue to LaunchKey support at ×