Use this method to refresh the accessToken and receive a new access token and expiration period:
client.refreshAccessToken();
This method does not have any mandatory parameters.
This method does not have any options.
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.
var accessToken = "";
var expiration = "";
client.refreshAccessToken().then(function(response){
accessToken = response.data.accessToken;
expiration = response.data.expiration;
});