Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oauth4webapi/mod.ts>PrivateKeyJwt

Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
Latest
function PrivateKeyJwt
import { PrivateKeyJwt } from "https://deno.land/x/oauth4webapi@v3.1.2/mod.ts";

private_key_jwt uses the HTTP request body to send client_id, client_assertion_type, and client_assertion as application/x-www-form-urlencoded body parameters. Digital signature is used for the assertion's authenticity and integrity.

Examples

Example 1

let key!: oauth.CryptoKey | oauth.PrivateKey

let clientAuth = oauth.PrivateKeyJwt(key)

Parameters

clientPrivateKey: CryptoKey | PrivateKey
optional
options: ModifyAssertionOptions