cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Musicians, convert your MuseScore files to PDF to play music on the go! Learn more here.

Discuss Dropbox Developer & API

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

Refresh Token expired

Refresh Token expired

bszt123
Helpful | Level 5

Hello,

 

We are issuing and using refresh tokens in our service according to the reference documentation below : 

 

Solved: Oauth2 refresh token question - what happens when ... - Dropbox Community (dropboxforum.com)

 

We understand that the refresh token should not expire, but it seems to expire after some time.

 

AuthError('a68526c2f28846df81b4e4290cc0567f', AuthError('expired_access_token', None))

AuthError('731de6b9ff3b4d828e2c538493dbc3fb', AuthError('expired_access_token', None))

AuthError('bf5090b1abe545daa7a2db4395cc4e0d', AuthError('expired_access_token', None))

AuthError('72dec5890f1a4fa8912c058127cb581d', AuthError('expired_access_token', None))

AuthError('10bdfac6098247088d1684a7af1761c7', AuthError('expired_access_token', None))

AuthError('9ad81d2298104e63b5aa1e70de5a9fe4', AuthError('expired_access_token', None))

AuthError('57ac76c52e71491594bac208f8e239ca', AuthError('expired_access_token', None))

 

 

We would like to verify if we are issuing the tokens correctly.

Thank you.

2 Replies 2

Здравко
Legendary | Level 20

Hm.. 🤔 As seems, somebody needs new glasses. As far as I can see, messages are about expired access token, not about expired refresh token. 🤷 Who knows... @bszt123  can you take a look again? You likely don't need glasses (not new at least). 😉

Good luck.

Greg-DB
Dropbox Staff

@bszt123 Здравко is correct; this error is referring to the access token being expired, not the refresh token. When you get this 'expired_access_token' error, you should use the refresh token to get a new access token. If you're using a Dropbox SDK, the SDK will do this for you automatically, as long as you supplied the necessary credentials (e.g., app key, app secret (if not using PKCE), and refresh token).

 

For more information on how the authorization process works, please refer to the following resources:

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Здравко Legendary | Level 20
What do Dropbox user levels mean?