Anchorage API reference
    Preparing search index...
    interface HmacVerifierOptions {
        audience: string;
        issuer: string;
        keys: ReadonlyMap<string, string>;
        now?: () => number;
    }
    Index

    Properties

    audience: string
    issuer: string
    keys: ReadonlyMap<string, string>

    kid -> HMAC secret. A plain Map lookup by design: a kid must never be interpreted as a path or URL (kid-injection). With exactly one key, a token without a kid falls back to it; with several, kid is required.

    now?: () => number

    Epoch-ms clock, injectable for tests. Default Date.now.