mirror of
https://github.com/github/codeql-action.git
synced 2025-12-30 03:00:13 +08:00
17 lines
289 B
TypeScript
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>;
|
|
}
|