You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

raymondc's avatar
raymondc
New member | Level 2
4 years ago

Revoke credential

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?

 

  • 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.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,883 PostsLatest Activity: 2 days ago
326 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!