Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.53 KB

deleteAuthorization.md

File metadata and controls

44 lines (34 loc) · 1.53 KB
name example route scope type
Delete an app authorization
octokit.apps.deleteAuthorization({ client_id })
DELETE /applications/{client_id}/grant
apps
API method

Delete an app authorization

OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use Basic Authentication when accessing this endpoint, using the OAuth application's client_id and client_secret as the username and password. You must also provide a valid OAuth access_token as an input parameter and the grant for the token's owner will be deleted. Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on the application authorizations settings screen within GitHub.

octokit.apps.deleteAuthorization({
  client_id,
});

Parameters

name required description
client_idyes

The client ID of your GitHub app.

access_tokenno

The OAuth access token used to authenticate to the GitHub API.

See also: GitHub Developer Guide documentation.