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

x/jose/jwt/produce.ts>ProduceJWT#setSubject

"JSON Web Almost Everything" - 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 ProduceJWT.prototype.setSubject
import { ProduceJWT } from "https://deno.land/x/jose@v4.13.0/jwt/produce.ts";

Set "sub" (Subject) Claim.

Parameters

subject: string

"sub" (Subject) Claim value to set on the JWT Claims Set.