Skip to main content
Latest
method jose.EncryptJWT.prototype.setProtectedHeader
import { jose } from "https://deno.land/x/jwe_cookie_map@v1.0.1/src/deps.ts";
const { EncryptJWT } = jose;

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.