Hi,
I'm trying to use the new authentication flow with short-live tokens and refresh tokens on an Android App with Dropbox JDK.
I'm using the
Auth.startOAuth2PKCE()
method which works correctly, but when I tried to access the credentials in the onResume method,
DbxCredential credential = Auth.getDbxCredential();
credential.getRefreshToken(); // NullPointerException
I get a NullPointer exception.
I'd like to access and save the refresh token to the shared prefs and resuse it to prevent the user to be logged out every 4 hours.
Why the getDbxCredential() returns null ?
Thanks for your help.