This commit is contained in:
25
node_modules/jwt-decode/index.d.ts
generated
vendored
Normal file
25
node_modules/jwt-decode/index.d.ts
generated
vendored
Normal file
@@ -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