@octokit/auth-oauth-app
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -150,3 +150,3 @@ 'use strict'; | ||
const VERSION = "3.0.2"; | ||
const VERSION = "3.0.3"; | ||
@@ -153,0 +153,0 @@ function createOAuthAppAuth(options) { |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "3.0.2"; | ||
export const VERSION = "3.0.3"; |
@@ -8,3 +8,3 @@ import { StrategyOptions, AuthOptions, Authentication } from "./types"; | ||
export declare function createOAuthAppAuth(options: StrategyOptions): ((authOptions: AuthOptions) => Promise<Authentication>) & { | ||
hook: (request: import("@octokit/types").RequestInterface, route: string | import("@octokit/types").EndpointOptions, parameters?: import("@octokit/types").RequestParameters | undefined) => Promise<import("@octokit/types").OctokitResponse<any>>; | ||
hook: (request: import("./types").RequestInterface, route: string | import("@octokit/types").EndpointOptions, parameters?: import("@octokit/types").RequestParameters | undefined) => Promise<import("@octokit/types").OctokitResponse<any>>; | ||
}; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "3.0.2"; | ||
export declare const VERSION = "3.0.3"; |
@@ -126,3 +126,3 @@ import { getUserAgent } from 'universal-user-agent'; | ||
const VERSION = "3.0.2"; | ||
const VERSION = "3.0.3"; | ||
@@ -129,0 +129,0 @@ function createOAuthAppAuth(options) { |
{ | ||
"name": "@octokit/auth-oauth-app", | ||
"description": "GitHub OAuth App authentication for JavaScript", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"license": "MIT", | ||
@@ -27,3 +27,3 @@ "files": [ | ||
"@octokit/request-error": "^2.0.0", | ||
"@octokit/types": "^2.0.0", | ||
"@octokit/types": "^4.0.1", | ||
"@types/btoa-lite": "^1.0.0", | ||
@@ -30,0 +30,0 @@ "btoa-lite": "^1.0.0", |
@@ -7,3 +7,2 @@ # auth-oauth-app.js | ||
[![Build Status](https://github.com/octokit/auth-oauth-app.js/workflows/Test/badge.svg)](https://github.com/octokit/auth-oauth-app.js/actions?query=workflow%3ATest) | ||
[![Greenkeeper](https://badges.greenkeeper.io/octokit/auth-oauth-app.js.svg)](https://greenkeeper.io/) | ||
@@ -63,3 +62,3 @@ `@octokit/auth-oauth-app` is implementing one of [GitHub’s authentication strategies](https://github.com/octokit/auth.js). | ||
clientId: "123", | ||
clientSecret: "secret" | ||
clientSecret: "secret", | ||
}); | ||
@@ -70,3 +69,3 @@ | ||
const appAuthentication = await auth({ | ||
type: "oauth-app" | ||
type: "oauth-app", | ||
}); | ||
@@ -86,3 +85,3 @@ // resolves with | ||
code: "random123", // code from OAuth web flow, see https://git.io/fhd1D | ||
state: "mystate123" | ||
state: "mystate123", | ||
}); | ||
@@ -180,3 +179,3 @@ // resolves with | ||
<td> | ||
You can pass in your own <a href="https://github.com/octokit/request.js"><code>@octokit/request</code></a> instance. For usage with enterprise, set <code>baseUrl</code> to the hostname. Example: | ||
You can pass in your own <a href="https://github.com/octokit/request.js"><code>@octokit/request</code></a> instance. For usage with enterprise, set <code>baseUrl</code> to the API root endpoint. Example: | ||
@@ -189,4 +188,4 @@ ```js | ||
request: request.defaults({ | ||
baseUrl: "https://ghe.my-company.com" | ||
}) | ||
baseUrl: "https://ghe.my-company.com/api/v3", | ||
}), | ||
}); | ||
@@ -417,4 +416,4 @@ ``` | ||
request: { | ||
hook: auth.hook | ||
} | ||
hook: auth.hook, | ||
}, | ||
}); | ||
@@ -437,3 +436,3 @@ | ||
client_id: "123", | ||
access_token: token | ||
access_token: token, | ||
}); | ||
@@ -440,0 +439,0 @@ ``` |
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
61110
440
+ Added@octokit/types@4.1.10(transitive)
- Removed@octokit/types@2.16.2(transitive)
Updated@octokit/types@^4.0.1