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?
Solved
Need help with creating Access token

Best answer by JohnSantos
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
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Sign up
Already have an account? Login
You can login or register as either a Docusign customer or developer. If you don’t already have a Docusign customer or developer account, you can create one for free when registering.
Customer Login/Registration Developer Login/RegistrationJoin the Docusign Community by logging in with your Docusign developer or customer account credentials.
Don’t have an account? You can create a free one when registering.
Note: Partner-specific logins are not available yet. Partners should log in as either a customer or developer
Docusign Community
You can login or register as either a Docusign customer or developer. If you don’t already have a Docusign customer or developer account, you can create one for free when registering.
Customer Login/Registration Developer Login/RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.