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

    Type Alias DPoPProfileOptions

    DPoPProfileOptions: DPoPProfileBaseOptions & (
        | { nonce: "off"; nonceSecrets?: never }
        | { nonce: "required"; nonceSecrets: readonly Uint8Array[] }
    )

    Options for defineDPoPProfile. token, origin, replay and nonce have no default, because only you know the answer.

    nonce: "required" makes every client carry a nonce this server issued, which stops proofs being made ahead of time with a lying clock and costs a round trip whenever a client's nonce is stale. nonce: "off" trusts the client's iat.

    Type Declaration

    • { nonce: "off"; nonceSecrets?: never }
    • { nonce: "required"; nonceSecrets: readonly Uint8Array[] }
      • nonce: "required"
      • nonceSecrets: readonly Uint8Array[]

        Secrets for signing nonces, each at least 32 random bytes. The first signs new nonces and all of them verify, so rotation is putting a new one first and removing the old one maxProofAge later. Every node behind one origin needs the same list.