cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We love to hear how every person gets the most from Dropbox, and it seems everyone has a slightly different use for it - tell us yours here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Revoke credential

Revoke credential

raymondc
New member | Level 2

Hello,

 

When using access token, there is the function

DropboxClient.auth().tokenRevoke() 

 to revoke the token (cases when one would want to do this is when the user decides to log out).

 

Now with the new workflow, DbxCredentials are used instead of access tokens. Is there a function that does something similar?

Since the token gets refreshed from time to time. Does refreshing revoke the previously used token?

 

1 Accepted Solution

Accepted Solutions

Re: Revoke credential

Greg-DB
Dropboxer

The same tokenRevoke method can be used with the new short-lived access tokens as well. Calling it will revoke the short-lived access token used, as well as the corresponding refresh token and other short-lived access tokens for that refresh token, if any.

 

Just performing an access token refresh does not invalidate previous access tokens.

View solution in original post

1 Reply 1

Re: Revoke credential

Greg-DB
Dropboxer

The same tokenRevoke method can be used with the new short-lived access tokens as well. Calling it will revoke the short-lived access token used, as well as the corresponding refresh token and other short-lived access tokens for that refresh token, if any.

 

Just performing an access token refresh does not invalidate previous access tokens.

View solution in original post

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?