Module

x/jose/index.ts>CompactSign#sign

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Latest
method CompactSign.prototype.sign
import { CompactSign } from "https://dotland.deno.dev/x/jose@v5.9.2/index.ts";

Signs and resolves the value of the Compact JWS string.

Parameters

key: KeyLike | Uint8Array | JWK

Private Key or Secret to sign the JWS with. See Algorithm Key Requirements.

optional
options: SignOptions

JWS Sign options.

Returns

Promise<string>