@octokit/auth-oauth-app
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -149,3 +149,3 @@ 'use strict'; | ||
const VERSION = "4.0.0"; | ||
const VERSION = "4.1.0"; | ||
@@ -152,0 +152,0 @@ function createOAuthAppAuth(options) { |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "4.0.0"; | ||
export const VERSION = "4.1.0"; |
import { OAuthAppStrategyOptions, GitHubAppStrategyOptions, OAuthAppAuthInterface, GitHubAuthInterface } from "./types"; | ||
export { OAuthAppStrategyOptions, GitHubAppStrategyOptions, AppAuthOptions, WebFlowAuthOptions, OAuthAppDeviceFlowAuthOptions, GitHubAppDeviceFlowAuthOptions, AppAuthentication, OAuthAppUserAuthentication, GitHubAppUserAuthentication, GitHubAppUserAuthenticationWithExpiration, } from "./types"; | ||
export { OAuthAppStrategyOptions, GitHubAppStrategyOptions, AppAuthOptions, WebFlowAuthOptions, OAuthAppDeviceFlowAuthOptions, GitHubAppDeviceFlowAuthOptions, OAuthAppAuthInterface, GitHubAuthInterface, AppAuthentication, OAuthAppUserAuthentication, GitHubAppUserAuthentication, GitHubAppUserAuthenticationWithExpiration, } from "./types"; | ||
export { createOAuthUserAuth } from "@octokit/auth-oauth-user"; | ||
export declare function createOAuthAppAuth(options: OAuthAppStrategyOptions): OAuthAppAuthInterface; | ||
export declare function createOAuthAppAuth(options: GitHubAppStrategyOptions): GitHubAuthInterface; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "4.0.0"; | ||
export declare const VERSION = "4.1.0"; |
@@ -60,3 +60,3 @@ import { getUserAgent } from 'universal-user-agent'; | ||
const VERSION = "4.0.0"; | ||
const VERSION = "4.1.0"; | ||
@@ -63,0 +63,0 @@ function createOAuthAppAuth(options) { |
{ | ||
"name": "@octokit/auth-oauth-app", | ||
"description": "GitHub OAuth App authentication for JavaScript", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -21,3 +21,3 @@ # auth-oauth-app.js | ||
- [`auth(options)` or `octokit.auth(options)`](#authoptions-or-octokitauthoptions) | ||
- [Client ID/Client Server Basic authentication](#client-idclient-server-basic-authentication) | ||
- [Client ID/Client Secret Basic authentication](#client-idclient-server-basic-authentication) | ||
- [OAuth web flow](#oauth-web-flow) | ||
@@ -222,3 +222,3 @@ - [OAuth device flow](#oauth-device-flow) | ||
factor: (options) => { | ||
new Octokit({ | ||
return new Octokit({ | ||
authStrategy: createOAuthUserAuth, | ||
@@ -319,3 +319,3 @@ auth: options, | ||
### Client ID/Client Server Basic authentication | ||
### Client ID/Client Secret Basic authentication | ||
@@ -431,7 +431,7 @@ All REST API routes starting with `/applications/{client_id}` need to be authenticated using the OAuth/GitHub App's Client ID and a client secret. | ||
const { | ||
createAppAuth, | ||
createOAuthAppAuth, | ||
createOAuthUserAuth, | ||
} = require("@octokit/auth-oauth-app"); | ||
const appAuth = createAppAuth({ | ||
const appAuth = createOAuthAppAuth({ | ||
clientType: "github-app", | ||
@@ -499,3 +499,3 @@ clientId: "lv1.1234567890abcdef", | ||
**Required**. A function that is called once the device and user codes were retrieved | ||
**Required**. A function that is called once the device and user codes were retrieved. | ||
@@ -1005,2 +1005,5 @@ The `onVerification()` callback can be used to pause until the user completes step 2, which might result in a better user experience. | ||
GitHubAppDeviceFlowAuthOptions, | ||
// auth interfaces | ||
OAuthAppAuthInterface, | ||
GitHubAuthInterface, | ||
// authentication object | ||
@@ -1007,0 +1010,0 @@ AppAuthentication, |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
58099
1034
0