Use this method to return the client's access token expiration period:
client.getExpiration();
The response will be an integer with an expiresAt timestamp.
expiresAt
var expiresAt = client.getExpiration();