docusign / docusign-esign-node-client

The Official DocuSign Node.js Client Library used to interact with the eSign REST API. Send, sign, and approve documents using this client.
http://docusign.github.io/docusign-esign-node-client
MIT License
146 stars 100 forks source link

Cannot find a method to refresh an access token #281

Open Chee7ah opened 2 years ago

Chee7ah commented 2 years ago

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.
acooper4960 commented 2 years ago

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