Hey,
i try to get the refresh token with the Java SDK (Android App).
I start authentication with this:
Auth.startOAuth2Authentication(getContext(), "abc");
And then in onResume:
@Override
public void onResume() {
super.onResume();
if (_isCloudAuthFlow) {
_isCloudAuthFlow = false;
String token = Auth.getOAuth2Token();
String refresh = Auth.getDbxCredential().getRefreshToken();
_businessLogic.getSharedPreferences().edit().putString(getString(R.string.all_settings_dropbox_authtoken), token).apply();
}
}
I get a authToken but the refresh token is always null.
Can you help?