Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oauth4webapi/src/index.ts>DPoPOptions

Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
Latest
interface DPoPOptions
implements CryptoKeyPair
import { type DPoPOptions } from "https://deno.land/x/oauth4webapi@v2.17.0/src/index.ts";

Properties

privateKey: CryptoKey

Private CryptoKey instance to sign the DPoP Proof JWT with.

Its algorithm must be compatible with a supported JWS alg Algorithm.

publicKey: CryptoKey

The public key corresponding to DPoPOptions.privateKey.

optional
nonce: string

Server-Provided Nonce to use in the request. This option serves as an override in case the self-correcting mechanism does not work with a particular server. Previously received nonces will be used automatically.

optional
[modifyAssertion]: ModifyAssertionFunction

Use to modify the DPoP Proof JWT right before it is signed.