Files
codeql-action/node_modules/universal-github-app-jwt/internals.d.ts
2025-02-19 11:13:12 -08:00

17 lines
289 B
TypeScript

export type Payload = {
iat: number;
exp: number;
iss: number | string;
};
export type Header = { alg: "RS256"; typ: "JWT" };
export type GetTokenOptions = {
privateKey: string;
payload: Payload;
};
export interface GetToken {
(options: GetTokenOptions): Promise<string>;
}