@octokit/oauth-app
Advanced tools
Comparing version 4.1.1 to 4.2.0
@@ -15,3 +15,3 @@ 'use strict'; | ||
const VERSION = "4.1.1"; | ||
const VERSION = "4.2.0"; | ||
@@ -93,2 +93,3 @@ function addEventHandler(state, eventName, eventHandler) { | ||
allowSignup, | ||
redirectUrl: options.redirectUrl || state.redirectUrl, | ||
scopes: options.scopes || state.defaultScopes | ||
@@ -802,2 +803,3 @@ }; | ||
baseUrl: options.baseUrl, | ||
redirectUrl: options.redirectUrl, | ||
log: options.log, | ||
@@ -804,0 +806,0 @@ Octokit, |
@@ -51,2 +51,3 @@ import { createOAuthAppAuth } from "@octokit/auth-oauth-app"; | ||
baseUrl: options.baseUrl, | ||
redirectUrl: options.redirectUrl, | ||
log: options.log, | ||
@@ -53,0 +54,0 @@ Octokit, |
@@ -23,2 +23,3 @@ import * as OAuthMethods from "@octokit/oauth-methods"; | ||
allowSignup, | ||
redirectUrl: options.redirectUrl || state.redirectUrl, | ||
scopes: options.scopes || state.defaultScopes, | ||
@@ -25,0 +26,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "4.1.1"; | ||
export const VERSION = "4.2.0"; |
@@ -18,2 +18,3 @@ import { Octokit } from "@octokit/core"; | ||
baseUrl?: string; | ||
redirectUrl?: string; | ||
log?: typeof console; | ||
@@ -43,2 +44,3 @@ Octokit?: TOctokit; | ||
baseUrl?: string; | ||
redirectUrl?: string; | ||
log?: typeof console; | ||
@@ -45,0 +47,0 @@ Octokit: OAuthAppOctokitClassType; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "4.1.1"; | ||
export declare const VERSION = "4.2.0"; |
{ | ||
"name": "@octokit/oauth-app", | ||
"description": "GitHub OAuth toolset for Node.js", | ||
"version": "4.1.1", | ||
"version": "4.2.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -13,27 +13,29 @@ # oauth-app.js | ||
- [Usage](#usage) | ||
- [For OAuth Apps](#for-oauth-apps) | ||
- [For GitHub Apps](#for-github-apps) | ||
- [Examples](#examples) | ||
- [`OAuthApp.defaults(options)`](#oauthappdefaultsoptions) | ||
- [Constructor options](#constructor-options) | ||
- [`app.on(eventName, eventHandler)`](#apponeventname-eventhandler) | ||
- [`app.octokit`](#appoctokit) | ||
- [`app.getUserOctokit(options)`](#appgetuseroctokitoptions) | ||
- [`app.getWebFlowAuthorizationUrl(options)`](#appgetwebflowauthorizationurloptions) | ||
- [`app.createToken(options)`](#appcreatetokenoptions) | ||
- [For OAuth Web flow](#for-oauth-web-flow) | ||
- [For OAuth Device flow](#for-oauth-device-flow) | ||
- [`app.checkToken(options)`](#appchecktokenoptions) | ||
- [`app.resetToken(options)`](#appresettokenoptions) | ||
- [`app.refreshToken(options)`](#apprefreshtokenoptions) | ||
- [`app.scopeToken(options)`](#appscopetokenoptions) | ||
- [`app.deleteToken(options)`](#appdeletetokenoptions) | ||
- [`app.deleteAuthorization(options)`](#appdeleteauthorizationoptions) | ||
- [Middlewares](#middlewares) | ||
- [`createNodeMiddleware(app, options)`](#createnodemiddlewareapp-options) | ||
- [`createWebWorkerHandler(app, options)`](#createwebworkerhandlerapp-options) | ||
- [`createAWSLambdaAPIGatewayV2Handler(app, options)`](#createawslambdaapigatewayv2handlerapp-options) | ||
- [Contributing](#contributing) | ||
- [License](#license) | ||
- [oauth-app.js](#oauth-appjs) | ||
- [Usage](#usage) | ||
- [For OAuth Apps](#for-oauth-apps) | ||
- [For GitHub Apps](#for-github-apps) | ||
- [Examples](#examples) | ||
- [`OAuthApp.defaults(options)`](#oauthappdefaultsoptions) | ||
- [Constructor options](#constructor-options) | ||
- [`app.on(eventName, eventHandler)`](#apponeventname-eventhandler) | ||
- [`app.octokit`](#appoctokit) | ||
- [`app.getUserOctokit(options)`](#appgetuseroctokitoptions) | ||
- [`app.getWebFlowAuthorizationUrl(options)`](#appgetwebflowauthorizationurloptions) | ||
- [`app.createToken(options)`](#appcreatetokenoptions) | ||
- [For OAuth Web flow](#for-oauth-web-flow) | ||
- [For OAuth Device flow](#for-oauth-device-flow) | ||
- [`app.checkToken(options)`](#appchecktokenoptions) | ||
- [`app.resetToken(options)`](#appresettokenoptions) | ||
- [`app.refreshToken(options)`](#apprefreshtokenoptions) | ||
- [`app.scopeToken(options)`](#appscopetokenoptions) | ||
- [`app.deleteToken(options)`](#appdeletetokenoptions) | ||
- [`app.deleteAuthorization(options)`](#appdeleteauthorizationoptions) | ||
- [Middlewares](#middlewares) | ||
- [`createNodeMiddleware(app, options)`](#createnodemiddlewareapp-options) | ||
- [`createWebWorkerHandler(app, options)`](#createwebworkerhandlerapp-options) | ||
- [`createAWSLambdaAPIGatewayV2Handler(app, options)`](#createawslambdaapigatewayv2handlerapp-options) | ||
- [Build Custom Middlewares](#build-custom-middlewares) | ||
- [Contributing](#contributing) | ||
- [License](#license) | ||
@@ -194,2 +196,13 @@ <!-- tocstop --> | ||
<th> | ||
<code>redirectUrl</code> | ||
</th> | ||
<th> | ||
<code>string</code> | ||
</th> | ||
<td> | ||
The URL in your application where users will be sent after authorization. See <a href="https://docs.github.com/en/developers/apps/authorizing-oauth-apps#redirect-urls">Redirect URLs</a> in GitHub’s Developer Guide. | ||
</td> | ||
</tr> | ||
<tr> | ||
<th> | ||
<code>defaultScopes</code> | ||
@@ -196,0 +209,0 @@ </th> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164494
1898
1243