We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Omri1984
3 years agoExplorer | Level 4
Support the old drobox and the new under same application
Hi guys, my app is trying to support the old drobox and the new under then same client . after getting the auth tokens we are creating a new DropboxTeamClient(request.AccessToken); then w...
- 3 years ago
Omri1984 Здравко is correct; the SDK can handle the refresh process for you automatically, but you need to supply the refresh token, and app key, and if not using PKCE, the app secret. In your code, you're only supplying an access token.
You can find an example of getting and using a refresh token in the OauthBasic example (non-PKCE, meant for server-side apps) as well as in the OAuthPKCE example (PKCE, meant for client-side apps).
Здравко
Legendary | Level 20
Hi Omri1984,
Yes, when refresh token is in use (as a client constructor argument), the client automatically refresh access token whenever needed. In your code no any refresh token can be seen. 🤔 (or I'm missing something) Just do what you are saying. 😉 Follow the your own "answer".
Good luck.
Greg-DB
3 years agoDropbox Staff
Omri1984 Здравко is correct; the SDK can handle the refresh process for you automatically, but you need to supply the refresh token, and app key, and if not using PKCE, the app secret. In your code, you're only supplying an access token.
You can find an example of getting and using a refresh token in the OauthBasic example (non-PKCE, meant for server-side apps) as well as in the OAuthPKCE example (PKCE, meant for client-side apps).
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!