Module

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

"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.setNotBefore
import { ProduceJWT } from "https://dotland.deno.dev/x/jose@v4.15.0/jwt/produce.ts";

Set "nbf" (Not Before) Claim.

Parameters

input: number | string

"nbf" (Not Before) Claim value to set on the JWT Claims Set. When number is passed that is used as a value, when string is passed it is resolved to a time span and added to the current timestamp.