Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

Replicates the "sub" (Subject) Claim as a JWE Protected Header Parameter.