Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.18 KB

resetToken.md

File metadata and controls

44 lines (34 loc) · 1.18 KB
name example route scope type
Reset a token
octokit.apps.resetToken({ client_id, access_token })
PATCH /applications/{client_id}/token
apps
API method

Reset a token

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,
});

Parameters

name required description
client_idyes

The client ID of your GitHub app.

access_tokenyes

The access_token of the OAuth application.

See also: GitHub Developer Guide documentation.