docusign-esign-node-client icon indicating copy to clipboard operation
docusign-esign-node-client copied to clipboard

Cannot find a method to refresh an access token

Open Chee7ah opened this issue 4 years ago • 1 comments

There is the generateAccessToken method of the ApiClient for generating an access token from the authorization code.

There is also the platform documentation's "Use refresh tokens" section that says that changing the grant_type from authorization_code to refresh_token and supplying a refresh_token instead of code param should make the same flow work for refreshing one.

There is however no way that I can see to refresh a token with the available methods in this package.

  1. Am I just missing it?
  2. Is it not included for a reason? (the php client seems to have it, the java client seems to be also missing it)
  3. Can we add it? If so, made PR #282 for it.

Chee7ah avatar Dec 06 '21 22:12 Chee7ah

Hello @Chee7ah thank you for reaching out on this topic. We are looking into extending this feature across all of our SDKs

acooper4960 avatar Mar 09 '22 22:03 acooper4960