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",
});
Build the profile that verifyDPoPRequest enforces. Throws
invalid-optionsfor anything missing or out of range, with a message naming the fix.