Socket
Socket
Sign inDemoInstall

universal-github-app-jwt

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

universal-github-app-jwt - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

2

dist-types/index.d.ts
import { Options, Result } from "./types";
export declare function githubAppJwt({ id, privateKey, now, }: Options): Promise<Result>;
export declare function githubAppJwt<T extends number | string = number>({ id, privateKey, now, }: Options<T>): Promise<Result<T>>;
export type PrivateKey = string;
export type AppId = number;
export type Expiration = number;
export type Token = string;
export type Options = {
id: AppId;
export type Options<IdType extends number | string = number> = {
id: IdType;
privateKey: PrivateKey;
now?: number;
};
export type Result = {
appId: AppId;
export type Result<IdType extends number | string = number> = {
appId: IdType;
expiration: Expiration;

@@ -18,3 +17,3 @@ token: Token;

exp: number;
iss: number;
iss: number | string;
};

@@ -21,0 +20,0 @@ export type GetTokenOptions = {

{
"name": "universal-github-app-jwt",
"description": "Calculate GitHub App bearer tokens for Node & modern browsers",
"version": "1.1.2",
"version": "1.2.0",
"license": "MIT",

@@ -6,0 +6,0 @@ "files": [

@@ -110,6 +110,6 @@ # universal-github-app-jwt

<th>
<code>number</code>
<code>number | string</code>
</th>
<td>
<strong>Required</strong>. Find <strong>App ID</strong> on the app’s about page in settings.
<strong>Required</strong>. The GitHub App's ID or Client ID. For <code>github.com</code> and GHES 3.14+, it is recommended to use the Client ID.
</td>

@@ -167,3 +167,3 @@ </tr>

<td>
The GitHub App database ID passed in <code>options.id</code>.
The GitHub App database ID or Client ID passed in <code>options.id</code>.
</td>

@@ -170,0 +170,0 @@ </tr>

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