cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Upload a file to dropbox dynamically with a refreshed access token

Upload a file to dropbox dynamically with a refreshed access token

ravikiranreddy
Explorer | Level 4
Go to solution

I was in the process of uploading a file to Dropbox using a Golang application. However, after a certain period, the access token expired, leading to an unsuccessful upload of the file.

To ensure the file is consistently uploaded with a valid token, it's crucial to establish a mechanism that checks the token's validity in real-time and handles expiration. If the token is identified as expired, it needs to be dynamically refreshed without requiring manual intervention.

My query is: Does Dropbox offer an API that enables automatic and dynamic access token refreshing, eliminating the need for manual intervention?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
3 Replies 3

Здравко
Legendary | Level 20
Go to solution

Hi @ravikiranreddy,

Yes, you need refresh token that can be used to programmatically get access token without further user interaction. Take a look here how can be done.

Hope this helps.

Greg-DB
Dropbox Staff
Go to solution

ravikiranreddy
Explorer | Level 4
Go to solution

Thanks you Greg
using-oauth-2-0-with-offline-access helped me to implement refresh tokens offline without manual intervention.

Need more support?