cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right 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: 

Re: Refresh Token Simulate

Refresh Token Simulate

phunction
Explorer | Level 4
Go to solution

Hi, I am trying to test handling refresh tokens, but my machine never seems to get the expired token error but clients are.

Is there a way to force the dropbox token to expire or a test server that will let me manually expire tokens, etc for testing?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

There isn't a way to force a short-lived access token to expire ahead of schedule, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. So, to test the actual 'expired_access_token' error for any particular short-lived access token, you would need to wait until it expires. (And for reference, you can identify short-lived access tokens by the "sl." prefix. If it does not start with "sl.", it is not a short-lived access token.)

 

In any case, I'll be happy to help with any issues you're having with the Dropbox API if something isn't working as expected, but I'll need some more information. If so, please share:

  • the name and version number of the platform and SDK/library you are using, if any
  • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
  • the full text of any error or unexpected output

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution

There isn't a way to force a short-lived access token to expire ahead of schedule, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. So, to test the actual 'expired_access_token' error for any particular short-lived access token, you would need to wait until it expires. (And for reference, you can identify short-lived access tokens by the "sl." prefix. If it does not start with "sl.", it is not a short-lived access token.)

 

In any case, I'll be happy to help with any issues you're having with the Dropbox API if something isn't working as expected, but I'll need some more information. If so, please share:

  • the name and version number of the platform and SDK/library you are using, if any
  • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
  • the full text of any error or unexpected output
Need more support?