Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revoking the token should restart the authorization process #10

Open
ccoenen opened this issue Aug 24, 2020 · 1 comment
Open

revoking the token should restart the authorization process #10

ccoenen opened this issue Aug 24, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@ccoenen
Copy link

ccoenen commented Aug 24, 2020

After successfully running this script (first-run experience is quite nice!), I revoked my access token.

This is handled relatively gracefully, the terminal just outputs

mastotool.exe stats
Can't retrieve user: bad request: 401 Unauthorized: The access token was revoked

I think at this point a new authorisation should be offered. (not forced, the failure could have different reasons as well).

@muesli
Copy link
Owner

muesli commented Aug 24, 2020

You're right, we can do better and handle this situation appropriately. In the meantime, you can just delete the entire config file mastotool.json, which would obviously restart the auth process.

@muesli muesli added the enhancement New feature or request label Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants