You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, there's some pretty cool generic logic setup for applying the appropriate headers to various ApiClient requests automatically via the ApiClient.applyAuthToRequest function; however, the auth object that it tries to make use of to set the appropriate authentication header never has any fields other than type.
It would be nice if we could set the corresponding fields on an API Client, e.g. dsApiClient.setJWTToken(jwtToken), which would set the appropriate field on the corresponding auth object, so that when we make DocuSign API requests, it automatically adds the appropriate auth header.
Presently, we have to do that bit manually by doing something like dsApiClient.addDefaultHeader('Authorization', 'Bearer ' + args.accessToken), which works, but that is an API implementation detail that could be abstracted away by the SDK.
The text was updated successfully, but these errors were encountered:
Right now, there's some pretty cool generic logic setup for applying the appropriate headers to various ApiClient requests automatically via the
ApiClient.applyAuthToRequest
function; however, theauth
object that it tries to make use of to set the appropriate authentication header never has any fields other thantype
.It would be nice if we could set the corresponding fields on an API Client, e.g.
dsApiClient.setJWTToken(jwtToken)
, which would set the appropriate field on the correspondingauth
object, so that when we make DocuSign API requests, it automatically adds the appropriate auth header.Presently, we have to do that bit manually by doing something like
dsApiClient.addDefaultHeader('Authorization', 'Bearer ' + args.accessToken)
, which works, but that is an API implementation detail that could be abstracted away by the SDK.The text was updated successfully, but these errors were encountered: