As the title says, after the recent revision of the Dropbox API, the Token started to have an expiration time..
In the past, if I did not revoke, the Token could be used permanently. Maybe the expiration time is added for security reasons.
However, this is very inconvenient for my application. I will need to upload files for a very long time (maybe for more than a month at a time).
According to the current API, I can only refresh the token repeatedly to keep the token no expires...
Does anyone know if there is still a way to create a set of tokens that will not expire in the current Dropbox API?
Dropbox is in the process of switching to only issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find more information on this migration here.
Apps can still get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. You can find more information in the OAuth Guide and authorization documentation.
For reference, while the creation of new long-lived access tokens is now deprecated, we don't currently have a plan to disable existing long-lived access tokens. (If that changes, we will of course announce that ahead of time.) That being the case, you can continue using existing long-lived access token(s) without interruption, if you have any. Also, note though that after the change you won't be able to create new long-lived access tokens.
While the change began on September 30th 2021, we're releasing it gradually, so you may not have seen your app(s) affected until now. Once it applies to your app, it would apply regardless of the "Access token expiration" setting for your app, and that setting may no longer be available for your app.