Developers

RefreshAccessToken

Usage

Use this method to refresh the accessToken and receive a new access token and expiration period:

client.refreshAccessToken();

Mandatory parameters

This method does not have any mandatory parameters.

Options

This method does not have any options.

Response data format

This method calls the Authorization API’s POST /refreshToken endpoint. Please refer to the Responses section of that endpoint on the Authorization API Routes page for the response format.

Example

var accessToken = "";
var expiration = "";
client.refreshAccessToken().then(function(response){
    accessToken = response.data.accessToken;
    expiration = response.data.expiration;
});