1
This commit is contained in:
23
node_modules/jwt-decode/build/esm/index.d.ts
generated
vendored
Normal file
23
node_modules/jwt-decode/build/esm/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
export interface JwtDecodeOptions {
|
||||
header?: boolean;
|
||||
}
|
||||
export interface JwtHeader {
|
||||
typ?: string;
|
||||
alg?: string;
|
||||
kid?: string;
|
||||
}
|
||||
export interface JwtPayload {
|
||||
iss?: string;
|
||||
sub?: string;
|
||||
aud?: string[] | string;
|
||||
exp?: number;
|
||||
nbf?: number;
|
||||
iat?: number;
|
||||
jti?: string;
|
||||
}
|
||||
export declare class InvalidTokenError extends Error {
|
||||
}
|
||||
export declare function jwtDecode<T = JwtHeader>(token: string, options: JwtDecodeOptions & {
|
||||
header: true;
|
||||
}): T;
|
||||
export declare function jwtDecode<T = JwtPayload>(token: string, options?: JwtDecodeOptions): T;
|
||||
Reference in New Issue
Block a user