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.

Migrate to short-term / refresh tokens

See original GitHub issue

As of September 2021, new apps created for Dropbox do not offer long-term token support. This blog post has more details, but essentially tokens must have an expiration date, and the app Oauth2 settings do not allow you to select “No expiration” anymore.

This results in the access tokens only lasting for a short amount of time (less than a day) before the git-remote-dropbox client throws an error when you try to interact with it:

Unable to refresh access token without refresh token and app key

Thus, anyone who has begun to using this tool after September 2021 must manually log in and retrieve a new generated access token every time their token expires, which is not ideal. It seems like git-remote-dropbox should either migrate to short-lived access tokens or refresh tokens, depending on what it is compatible with.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:23 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
anishathalyecommented, Apr 14, 2022

Switching to the refresh token doesn’t invalidate the long-lived token, so if users are using that on another machine, it will continue to work.

1reaction
echuber2commented, Apr 14, 2022

Does input() break in the MINGW64 terminal in general? If it’s at least working in Git Bash (based on MSYS2, I think), then maybe you could just use Git Bash long enough for the migration and refresh token retrieval to work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrate from Renew to Refresh OAuth Tokens
Before the OAuth token expires, refresh it by using the refresh_token grant type in the ObtainToken endpoint to get a new OAuth token....
Read more >
Solved: Migrating existing long term tokens to new short t...
If you want to start testing short-lived access tokens, you will want to create a new OAuth URL and pass in token-access type...
Read more >
Refresh Token Rotation - Auth0
Refresh Token Rotation ... Refresh token rotation is a technique for getting new access tokens using refresh tokens that goes beyond silent authentication....
Read more >
Does expiring the OAuth refresh token at the same time as the ...
The refresh token is not being expired at the same time as the access_token, it's being rotated upon usage. From section 5.2.2.3 of...
Read more >
Usage of Refresh Token in OAuth2.0 - Stack Overflow
Refresh token is a token that you use to get another valid token to interact with the API you're using since the tokens...
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