Interface JWTVerifyOption

verify parameters for verifyJWT

interface JWTVerifyOption {
    alg: string[];
    aud?: string[];
    gracePeriod?: number;
    iss?: string[];
    jti?: string;
    sub?: string[];
    verifyAt?: number;
}

Properties

alg: string[]

acceptable JWS algorithm

aud?: string[]

acceptable JWT audience claim

gracePeriod?: number

acceptable time difference seconds to relax nbf and exp

iss?: string[]

acceptable JWT issuer claim

jti?: string

acceptable JWT ID claim

sub?: string[]

acceptable JWT subject claim

verifyAt?: number

time in second from Unix origin to verify