cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Discuss Dropbox Developer & API

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

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

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
3 Replies 3

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

ravikiranreddy
Explorer | Level 4

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

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    ravikiranreddy Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Здравко Legendary | Level 20
What do Dropbox user levels mean?