[BUG]: Can't delete (revoke) OR refresh user token #2842
Labels
Status: Triage
This is being looked at and prioritized
Type: Bug
Something isn't working as documented
Uh oh!
There was an error while loading. Please reload this page.
What happened?
I had built a CLI named
gitfm
in JavaScript a year ago using@octokit/rest
and@octokit/oauth-methods
of the@octokit
npm packages.Everything was great, all features and authentications were working perfectly fine for most of the time.
Recently, today I was using my app and tried to logout from my app (It is done by revoking the user token and then clearing the revoked token from local config file). It didn't work and threw an error.
The function (when called) which used to revoke the token uses this code -
This is the code of the complete function -
Previously it used to execute successfully without any error.
Now, this throws error (image below) -
This should work. If not, then I think it will be good if you people kindly keep the docs up to date.
Reference - GitHub REST API DOCUMENTATION - Delete An App Token
The same happend when I try to reset the currently active token. Code of my function which refreshes a token -
It is now failing the same way.
Versions
@octokit/[email protected]
@octokit/[email protected]
nodejs v20.18.2
Code of Conduct
The text was updated successfully, but these errors were encountered: