UNPKG

ts-jwt-decode

Version:

A TypeScript based JWT Token decoder with token verification

17 lines (15 loc) 351 B
namespace jsrsasign.KJUR.jws.JWS { type Key = RSAKey | KJUR.crypto.DSA | KJUR.crypto.ECDSA | string; export function verifyJWT( sJWT: string, key?: Key, acceptField?: { alg?: string[]; aud?: string[]; iss?: string[]; jti?: string; sub?: string[]; verifyAt?: string | number; }, ): boolean; }