We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

Omri1984's avatar
Omri1984
Explorer | Level 4
3 years ago

2 console application 1 account -

if i have a user the authenticate in one application  get access refresh tokens.

then authenticate in another application is the old token will stop working 

or every authentication can exist no matter what.

 

i am asking this because my company toll doing a migration many for each user ,

if during the migration the user will authenticate again in order to run another migration does the old token will expire and i need to use the new token also for the old migration ?

 

 

is my explanation clear ?

  • Greg-DB's avatar
    Greg-DB
    3 years ago

    Refresh tokens do not expire automatically, but they can be revoked by the app or user on demand. That means by default you do not need to get a new refresh token for an account that is already connected (unless it is explicitly revoked by the app or user).

     

    Short-lived access tokens do expire after four hours. A refresh token is used to perform the "refresh", which is a way to get a new short-lived access token. The Dropbox .NET SDK will do that for your automatically so you don't need to implement that yourself.

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

    Authorizing a new application does not affect existing app authorizations. If you get a refresh token for a particular app on an account, existing refresh tokens for other apps on that same account will not be affected. Accounts can have multiple apps connected at the same time.

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

        The same applies if it's the same app. A single app-account pair can have multiple different refresh tokens. Creating a new refresh token for an app on an account does not affect existing refresh tokens for that app on that account.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 21 minutes ago
325 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!