name | example | route | scope | type |
---|---|---|---|---|
Reset a token |
octokit.apps.resetToken({ client_id, access_token }) |
PATCH /applications/{client_id}/token |
apps |
API method |
OAuth applications can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. You must use Basic Authentication when accessing this endpoint, using the OAuth application's client_id
and client_secret
as the username and password. Invalid tokens will return 404 NOT FOUND
.
octokit.apps.resetToken({
client_id,
access_token,
});
name | required | description |
---|---|---|
client_id | yes |
The client ID of your GitHub app. |
access_token | yes |
The access_token of the OAuth application. |
See also: GitHub Developer Guide documentation.