antlion-lacewing - v2.0.1
    Preparing search index...

    Interface DPoPProfileBaseOptions

    The options every profile takes, whatever its nonce mode. See DPoPProfileOptions.

    interface DPoPProfileBaseOptions {
        legacyAlgorithms?: readonly LegacyProofAlgorithm[];
        maxProofAge?: string | number;
        now?: () => number;
        origin: string;
        replay: ReplayStore;
        token: ExpectedJwtProfile;
    }
    Index
    legacyAlgorithms?: readonly LegacyProofAlgorithm[]

    From antlion-lacewing/legacy, and only if a client can't sign anything FAPI allows.

    maxProofAge?: string | number

    How old a proof's iat may be, as seconds or a string like "30s". Defaults to 60 seconds, and may be raised to at most 300. Also how long a server nonce stays valid. A client clock running up to 5 seconds ahead is always allowed, and that is not configurable.

    now?: () => number

    Swappable clock in milliseconds, for iat and nonces. Defaults to Date.now. The access token is judged by your Lacewing profile's own clock, so if you set one, give both the same now.

    origin: string

    The origin your clients sign against, as scheme://host[:port], spelled the way the URL parser prints it (lowercase host, no default port, no trailing slash). htu must equal this plus the request's path. Host, X-Forwarded-* and Forwarded are never read.

    replay: ReplayStore

    Where accepted proofs are remembered. SingleProcessReplayStore for one process; past that, a store every process shares.

    token: ExpectedJwtProfile

    Your Lacewing access-token profile, from accessTokenProfile() or defineProfile(). It verifies the access token exactly as it does without Antlion; Antlion adds its checks and loosens none of Lacewing's.