Skip to main content
Module

x/jose/index.ts>CompactSign#sign

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Go to Latest
method CompactSign.prototype.sign
import { CompactSign } from "https://deno.land/x/jose@v4.12.1/index.ts";

Signs and resolves the value of the Compact JWS string.

Parameters

key: KeyLike | Uint8Array

Private Key or Secret to sign the JWS with.

optional
options: SignOptions

JWS Sign options.

Returns

Promise<string>