Module

x/jose/index.ts>SignJWT#setProtectedHeader

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

Sets the JWS Protected Header on the SignJWT object.

Parameters

protectedHeader: JWTHeaderParameters

JWS Protected Header. Must contain an "alg" (JWS Algorithm) property.