UNPKG

@tanu-chahal/jwt-library

Version:

Encode, Decode & Validate JSON Web Token (JWTs)

6 lines (5 loc) 136 B
export declare function decode_jwt(secret: string, jwt: string): { id: string; payload: object; expires_at: Date | null; };