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

x/oauth4webapi/mod.ts>generateKeyPair

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

Generates a CryptoKeyPair for a given JWS alg Algorithm identifier.

Parameters

alg: string

Supported JWS alg Algorithm identifier. Must be a supported JWS Algorithm.

optional
options: GenerateKeyPairOptions