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.
|client_id:||Service Key of your Service. This is found on the Keys tab of your Service details in the
|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
GET https://oauth.launchkey.com/access_token?client_id=1234567890&client_secret=SECRET_KEY&redirect_uri=REDIRECT_PAGE_URL&refresh_token=REFRESH_TOKEN&grant_type=refresh_token HTTP/1.1
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
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 https://launchkey.com./support.