mirror of
https://github.com/github/codeql-action.git
synced 2026-05-16 16:20:21 +00:00
Import @actions/artifact@v1 as artifact-legacy and v2 as artifact
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
export class InvalidTokenError extends Error {}
|
||||
|
||||
export interface JwtDecodeOptions {
|
||||
header?: boolean;
|
||||
}
|
||||
|
||||
export interface JwtHeader {
|
||||
type?: string;
|
||||
alg?: string;
|
||||
}
|
||||
|
||||
export interface JwtPayload {
|
||||
iss?: string;
|
||||
sub?: string;
|
||||
aud?: string[] | string;
|
||||
exp?: number;
|
||||
nbf?: number;
|
||||
iat?: number;
|
||||
jti?: string;
|
||||
}
|
||||
|
||||
export default function jwtDecode<T = unknown>(
|
||||
token: string,
|
||||
options?: JwtDecodeOptions
|
||||
): T;
|
||||
Reference in New Issue
Block a user