All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.build.cjs.index.d.ts Maven / Gradle / Ivy

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(token: string, options: JwtDecodeOptions & {
    header: true;
}): T;
export declare function jwtDecode(token: string, options?: JwtDecodeOptions): T;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy