I have a little Cordova (I know react-native is cool now, but I strongly prefer Vue) app for Android+browser that uses Dropbox for sync, and for both platforms does auth by getting an OAuth2 bearer token using the javascript SDK (calling getAuthenticationUrl() w/ the appropriate callback, and navigating to the result).
From what I gather, the new API changes towards short-lived tokens mean that a) no matter what, browser apps will have to do a manual relogin every 4 hrs (though it might just be an insta-redirect with no manual user re-entry of credentials).
DropBoxInc's intent is that mobile apps that want long-lived access also request a refresh token, with which you can request future short-lived tokens.
But will the Javascript SDK (which I imagine is what most hybrid apps use) support this? I tried manually appending
token_access_type=offline to the authentication URL returned by getAuthenticationUrl, but at the page:
https://www.dropbox.com/oauth2/authorize?response_type=token&token_access_type=offline&client_id=$myclientid&redirect_uri=$myworkingredirect
I get 'Offline access disallowed for OAuth2 token flow ("response_type" can't be "token").'
But this would seem to mean that any cordova/capacitor/phonegap/hybrid apps (that rely on the javascript sdk for low-friction access to the dropbox API) are doomed with asking users to re-auth every 4hrs?