question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setRefreshToken unexpectedly removed since v5.2.0

See original GitHub issue

Hello, I’m following the official OAuth2 developer guide from this URL: https://www.dropbox.com/lp/developers/reference/oauth-guide#using-refresh-tokens

Also, from the /oauth2/token documentation, I understand that Dropbox v2 API supports short-lived tokens with refresh tokens: https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token

However, i’m surprised to see that in v5.2.0, the setRefreshToken method was removed from the SDK.

https://github.com/dropbox/dropbox-sdk-js/compare/v5.1.0...v5.2.0#diff-fb89f29edccb776d0def9b404e7645a9

Is that intentional? If yes, is there another way to refresh tokens and use short lived tokens?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rogebrdcommented, Sep 13, 2020

I see, that does seem to be a bug, I can get that resolved asap. We are going to be pushing an update in the next few days so we can add this change into that update as well.

0reactions
greg-dbcommented, Sep 28, 2020

This should be fixed now as of the latest version. Please give it a try and let us know if you’re still seeing any issues. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

PKCE version of `getAuthenticationUrl()` is not available in ...
I'm trying to follow example of PKCE_backend/code_flow_example.js but do it in typescript and found the definition of getAuthenticationUrl() ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found