First upload version 0.0.1
This commit is contained in:
18
node_modules/@octokit/oauth-app/dist-src/methods/get-web-flow-authorization-url.js
generated
vendored
Normal file
18
node_modules/@octokit/oauth-app/dist-src/methods/get-web-flow-authorization-url.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import * as OAuthMethods from "@octokit/oauth-methods";
|
||||
function getWebFlowAuthorizationUrlWithState(state, options) {
|
||||
const optionsWithDefaults = {
|
||||
clientId: state.clientId,
|
||||
request: state.octokit.request,
|
||||
...options,
|
||||
allowSignup: state.allowSignup ?? options.allowSignup,
|
||||
redirectUrl: options.redirectUrl ?? state.redirectUrl,
|
||||
scopes: options.scopes ?? state.defaultScopes
|
||||
};
|
||||
return OAuthMethods.getWebFlowAuthorizationUrl({
|
||||
clientType: state.clientType,
|
||||
...optionsWithDefaults
|
||||
});
|
||||
}
|
||||
export {
|
||||
getWebFlowAuthorizationUrlWithState
|
||||
};
|
||||
Reference in New Issue
Block a user