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

x/oauth4webapi/mod.ts>PrivateKey

OAuth 2 / OpenID Connect for JavaScript Runtimes
Go to Latest
interface PrivateKey
import { type PrivateKey } from "https://deno.land/x/oauth4webapi@v2.7.0/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 alg 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.