@octokit/oauth-methods
Version:
Set of stateless request methods to create, check, reset, refresh, and delete user access tokens for OAuth and GitHub Apps
19 lines (18 loc) • 797 B
TypeScript
import type { RequestInterface, Endpoints } from "@octokit/types";
export type DeleteAuthorizationOAuthAppOptions = {
clientType: "oauth-app";
clientId: string;
clientSecret: string;
token: string;
request?: RequestInterface;
};
export type DeleteAuthorizationGitHubAppOptions = {
clientType: "github-app";
clientId: string;
clientSecret: string;
token: string;
request?: RequestInterface;
};
export type DeleteAuthorizationResponse = Endpoints["DELETE /applications/{client_id}/grant"]["response"];
export declare function deleteAuthorization(options: DeleteAuthorizationOAuthAppOptions): Promise<DeleteAuthorizationResponse>;
export declare function deleteAuthorization(options: DeleteAuthorizationGitHubAppOptions): Promise<DeleteAuthorizationResponse>;