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 have by default the short term expiration token (it expire each 4 hours) but i need the long term cause i'd like to avoid Oauth2 implementation.
I've sent an e-mail to the support with ticket number 16503714 and they marked it as 'solved' but when i click on 'generated access token' button (in settings/O auth2) it shows the 'sl.' token (same as before)
Could you help with that ?
Thanks!
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.
- ЗдравкоLegendary | 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_tvoxNew member | Level 2
Thanks a lot for your explanation Здравко!
- Greg-DBDropbox Staff
production_tvox Здравко is correct; retrieving new long-lived access tokens is no longer an option. Refer to their message and the thread they linked to for more information.
By the way, I just checked and I see that your support ticket #16503714 did get a response with information about this. If you did not receive that, please check your email account's spam folder.
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!