dropbox / dbxcli

A command line client for Dropbox built using the Go SDK
Other
1.04k stars 102 forks source link

Cannot logout - "Error: expired_access_token" #208

Open bwesen opened 3 months ago

bwesen commented 3 months ago

Just tested dbxcli (latest git version) and I got it to authorize correctly, I could put a file and stuff, then when I tried it again a few hours later I got an "expired_access_token" error, and couldn't find any command to refresh it (shouldn't that be done automatically as its an oauth2 app?) What is worse, I couldn't even logout...

jorn@breck:~/go/src/github.com/dropbox/dbxcli$ ./dbxcli account
Error: expired_access_token/
jorn@breck:~/go/src/github.com/dropbox/dbxcli$ ./dbxcli logout
Error: expired_access_token/
jorn@breck:~/go/src/github.com/dropbox/dbxcli$ ./dbxcli account
Error: expired_access_token/

Where does dbxcli store the temporary refresh tokens? Maybe I can delete it manually and retry.

But surely it isn't meant to require a full account authorization cycle every 3 hours? That would make the app unuseable for backend scripting.