Skip to main content

I have a Node.js application where I create a DocuSign envelope. Currently, I use the Authorization Code Grant flow to manually obtain the access token and refresh token. However, the refresh token expires every 30 days if not used. Is there an alternative method that would allow me to avoid manually generating a new access token and logging in each time the refresh token expires?

@anupk11 

Instead of using the Authorization Code Grant flow, which requires user interaction and has refresh tokens that expire after 30 days of inactivity, you can use the JWT (JSON Web Token) Grant authentication flow.

Since JWT tokens are short-lived, your application should automatically request a new one when needed


@anupk11 

Instead of using the Authorization Code Grant flow, which requires user interaction and has refresh tokens that expire after 30 days of inactivity, you can use the JWT (JSON Web Token) Grant authentication flow.

Since JWT tokens are short-lived, your application should automatically request a new one when needed

Can you share some resource/docs for implementing jwt in nodejs?


@anupk11 

https://github.com/docusign/docusign-esign-node-client


Do I need to create a new app with JWT (JSON Web Token) Grant? Or can I change the existing application to use JWT?


Reply