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

    Function defineDPoPProfile

    • Build the profile that verifyDPoPRequest enforces. Throws invalid-options for anything missing or out of range, with a message naming the fix.

      Parameters

      Returns DPoPProfile

      const dpop = defineDPoPProfile({
      token: accessTokenProfile({
      issuer, audience, algorithms: ["ES256"],
      keys: { jwksUri, cacheTtlSeconds: 300, cooldownSeconds: 30, timeoutMs: 2000 },
      }),
      origin: "https://api.example.com",
      replay: new SingleProcessReplayStore({ maxEntries: 100_000 }),
      nonce: "off",
      });