Socket
Socket
Sign inDemoInstall

@octokit/oauth-authorization-url

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/oauth-authorization-url - npm Package Compare versions

Comparing version 4.2.1 to 4.3.0

1

dist-types/index.d.ts
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>;

2

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc