lacewing - v2.0.1
    Preparing search index...

    Interface ClaimsPolicy

    The claim-checking slice shared by the verify (JWS) and decrypt (JWE) paths. Both ExpectedJwtProfile and ExpectedDecryptionProfile satisfy it, so one claims engine serves both.

    interface ClaimsPolicy {
        aud: string;
        claimValidators?: Record<string, ValidateClaim>;
        iss: string;
        maxClockSkew: DurationSeconds;
        maxTokenAge: DurationSeconds;
        maxTokenLifetime?: DurationSeconds;
        subject?: string;
    }

    Hierarchy (View Summary)

    Index
    aud: string
    claimValidators?: Record<string, ValidateClaim>
    iss: string
    maxClockSkew: DurationSeconds
    maxTokenAge: DurationSeconds
    maxTokenLifetime?: DurationSeconds

    Optional cap on the token's declared span (exp - iat).

    subject?: string