Upgrade octokit to v4.1.2
This commit is contained in:
parent
dbbcbe019d
commit
c1745a9831
1214 changed files with 160765 additions and 0 deletions
16
node_modules/@octokit/oauth-app/dist-src/methods/check-token.js
generated
vendored
Normal file
16
node_modules/@octokit/oauth-app/dist-src/methods/check-token.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import * as OAuthMethods from "@octokit/oauth-methods";
|
||||
async function checkTokenWithState(state, options) {
|
||||
const result = await OAuthMethods.checkToken({
|
||||
// @ts-expect-error not worth the extra code to appease TS
|
||||
clientType: state.clientType,
|
||||
clientId: state.clientId,
|
||||
clientSecret: state.clientSecret,
|
||||
request: state.octokit.request,
|
||||
...options
|
||||
});
|
||||
Object.assign(result.authentication, { type: "token", tokenType: "oauth" });
|
||||
return result;
|
||||
}
|
||||
export {
|
||||
checkTokenWithState
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue