Solving the mastodon.el error mastodon-auth--access-token: invalid
| emacs, mastodon
If you get mastodon-auth--handle-token-response: Mastodon-auth--access-token: invalid_grant: The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.
while trying to set up mastodon.el from MELPA, you might have an outdated version. Try the following steps:
M-x package-delete mastodon
- Restart Emacs
M-x package-refresh-contents
M-x package-install mastodon
If that doesn't work, try installing it from the Git repository: https://codeberg.org/martianh/mastodon.el.git
Posting this here to make it searchable.
1 comment
Mert Gör
2024-06-18T14:20:31ZI revoked the Emacs Client Mastodon.el from Web interface. Then I tried to login via Emacs but failed. I realized that there is a config file that holds "keys" in emacs.d/ directory. I backed up the file and tried to login again and succesfully authorized the GNU Emacs and Mastodon instance.
Deleting refreshing etc is not a solution.
happy hacking !