I would like to be able to check if Dropbox authentication was successful.
In the old API v1, it was possible to run the following code:
AndroidAuthSession session = dropboxApi.getSession();
if (session.authenticationSuccessful()) {
try {
// Mandatory call to complete the auth
session.finishAuthentication();
storeAuth(session);
} catch (IllegalStateException e) {
cs = "Could not authenticate with Dropbox:" + e.getLocalizedMessage();
...
}
}
What would be the equivalent method in API v2 when running the following code:
Auth.startOAuth2Authentication(this, APP_KEY);
Also, is it possible to check if the following call was successful:
DropboxClientFactory.init(accessToken);