@octokit/oauth-authorization-url
Advanced tools
Comparing version 4.2.1 to 4.3.0
import { ClientType, Options, Result } from "./types"; | ||
export { ClientType, Options, Result } from "./types"; | ||
export declare function oauthAuthorizationUrl<TClientType extends ClientType = "oauth-app">(options: Options<TClientType>): Result<TClientType>; |
{ | ||
"name": "@octokit/oauth-authorization-url", | ||
"description": "Universal library to retrieve GitHubâs identity URL for the OAuth web flow", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -17,2 +17,3 @@ # oauth-authorization-url.js | ||
- [Result](#result) | ||
- [Types](#types) | ||
- [License](#license) | ||
@@ -253,3 +254,3 @@ | ||
<td> | ||
Returns <code>options.state</code> if it was set. Defaults to <code>Defaults to <code>Math.random().toString(36).substr(2)</code>. | ||
Returns <code>options.state</code> if it was set. Defaults to Defaults to <code>Math.random().toString(36).substr(2)</code>. | ||
</td> | ||
@@ -268,4 +269,14 @@ </tr> | ||
## Types | ||
```ts | ||
import { ClientType, Options, Result } from "@octokit/oauth-authorization-url"; | ||
``` | ||
- `ClientType` is a union of `"oauth-app"` and `"github-app"` | ||
- `Options<"oauth-app">` returns types for OAuth Apps Options. `Options<"github-app">` returns types for GitHub Apps Options. | ||
- `Result<"oauth-app">` returns types for OAuth Apps Result object. `Result<"github-app">` returns types for GitHub Apps Result object. | ||
## License | ||
[MIT](LICENSE) |
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
28084
261
280