Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/jose/jwt/encrypt.ts>EncryptJWT#setProtectedHeader

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 EncryptJWT.prototype.setProtectedHeader
import { EncryptJWT } from "https://deno.land/x/jose@v5.4.1/jwt/encrypt.ts";

Sets the JWE Protected Header on the EncryptJWT object.

Parameters

JWE Protected Header. Must contain an "alg" (JWE Algorithm) and "enc" (JWE Encryption Algorithm) properties.