How do I programmatically refresh an API access token?

How do I programmatically refresh an API access token?

Information

Title
How do I programmatically refresh an API access token?

Summary
Dwolla’s API access tokens are valid for up to one hour after creation. After the hour is up, the token expires and cannot be used to make authorized calls to the Dwolla API. To avoid any gaps, we recommend refreshing the token every 45 minutes to 1 hour.

A new access token can be created by exchanging your client credentials (application key and secret) with the API. Use our API reference documentation for code examples demonstrating access token creation in the different languages that have SDKs. Also check out our step-by-step guide on creating, refreshing and using access tokens.

Alternatively, our SDKs for Ruby, Node and Kotlin come with token management. If you’re using one of these SDKs, then you just need to instantiate the Client and the library handles refreshing the token every hour before it expires.

URL Name
How-do-I-programmatically-refresh-an-API-access-token