Skip to main content
Module

x/oauth4webapi/mod.ts>PrivateKey

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