dbxcli icon indicating copy to clipboard operation
dbxcli copied to clipboard

Cannot logout - "Error: expired_access_token"

Open bwesen opened this issue 1 year ago • 1 comments

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.

bwesen avatar Apr 16 '24 19:04 bwesen

@bwesen If you're on a Linux/Unix based system (MacOS included), you should have a file at ~/.config/dbxcli/auth.json where ~ represents your user's home directory. If you remove that file with rm ~/.config/dbxcli/auth.json and then run dbxcli account again, you should be able to log back in again 😄

threevi avatar Oct 10 '24 01:10 threevi