We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
production_tvox
3 years agoNew member | Level 2
Long term expiration Token
Hi, I've created a new app but i'm not able to have a long term expiration token (token that never expires). I've noticed that by default, since september 2021 i guess, all the new apps will hav...
- 3 years ago
Hi production_tvox,
Long lived access tokens (despite existing can still be used) can NOT be issued any more. You should add in your code support for refresh token. Like the long lived access token, refresh token doesn't expire till revoke explicitly. If you are using in your application one of Dropbox SDKs, the only thing you have to do is initialization of client object properly with refresh token instead of long lived access token. The SDK in use will take care for the rest. Without SDK you have to add some refresh logic in your application, so to ensure a valid short lived access token is available whenever need.
You can avoid implementing full OAuth flow within your application with a pre-generated refresh token to be used into application (the same like long lived access token). 😉 Usable on server side applications. Take a look here for a possible way of getting such token.
Hope this helps.
Здравко
3 years agoLegendary | Level 20
Hi production_tvox,
Long lived access tokens (despite existing can still be used) can NOT be issued any more. You should add in your code support for refresh token. Like the long lived access token, refresh token doesn't expire till revoke explicitly. If you are using in your application one of Dropbox SDKs, the only thing you have to do is initialization of client object properly with refresh token instead of long lived access token. The SDK in use will take care for the rest. Without SDK you have to add some refresh logic in your application, so to ensure a valid short lived access token is available whenever need.
You can avoid implementing full OAuth flow within your application with a pre-generated refresh token to be used into application (the same like long lived access token). 😉 Usable on server side applications. Take a look here for a possible way of getting such token.
Hope this helps.
- production_tvox3 years agoNew member | Level 2
Thanks a lot for your explanation Здравко!
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 7 days 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!