AVEbrahimi
AVEbrahimi

Reputation: 19224

Revoke Dropbox access in Java/Android SDK

I can get access token from Dropbox, using this code :

Auth.startOAuth2Authentication(getApplicationContext(), getString(R.string.DROPBOX_APP_KEY));

But how can I revoke access to Dropbox from Java/Android SDK?

Upvotes: 0

Views: 160

Answers (1)

Greg
Greg

Reputation: 16940

You can use the DbxUserAuthRequests tokenRevoke method to revoke the access token. That will cause any further API calls with that token to fail.

You can then delete the token from your app's storage.

Upvotes: 1

Related Questions