| 12345678910111213141516171819202122232425 |
- 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;
|