cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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
Go to solution

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

Greg-DB
Dropbox Staff
Go to solution

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

Greg-DB
Dropbox Staff
Go to solution

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?