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

x/oauth4webapi/mod.ts>PrivateKey

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

Interface to pass an asymmetric private key and, optionally, its associated JWK Key ID to be added as a kid JOSE Header Parameter.

Properties

An asymmetric private CryptoKey.

Its algorithm must be compatible with a supported JWS Algorithm.

optional
kid: string

JWK Key ID to add to JOSE headers when this key is used. When not provided no kid (JWK Key ID) will be added to the JOSE Header.