First upload version 0.0.1
This commit is contained in:
18
node_modules/@octokit/oauth-methods/dist-src/delete-authorization.js
generated
vendored
Normal file
18
node_modules/@octokit/oauth-methods/dist-src/delete-authorization.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { request as defaultRequest } from "@octokit/request";
|
||||
async function deleteAuthorization(options) {
|
||||
const request = options.request || defaultRequest;
|
||||
const auth = btoa(`${options.clientId}:${options.clientSecret}`);
|
||||
return request(
|
||||
"DELETE /applications/{client_id}/grant",
|
||||
{
|
||||
headers: {
|
||||
authorization: `basic ${auth}`
|
||||
},
|
||||
client_id: options.clientId,
|
||||
access_token: options.token
|
||||
}
|
||||
);
|
||||
}
|
||||
export {
|
||||
deleteAuthorization
|
||||
};
|
||||
Reference in New Issue
Block a user