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

x/live/commons/jwt/keys.ts>getKeyPair

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Go to Latest
variable getKeyPair
import { getKeyPair } from "https://deno.land/x/live@1.103.0/commons/jwt/keys.ts";

Returns a tuple of [publicKey, privateKey] in a JsonWebKey format.

type

() => Promise<[JsonWebKey, JsonWebKey]>