Skip to main content
Module

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

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS with no dependencies using runtime's native crypto in Node.js, Browser, Cloudflare Workers, Electron, and Deno.
Extremely Popular
Go to Latest
method ProduceJWT.prototype.setNotBefore
import { ProduceJWT } from "https://deno.land/x/jose@v4.8.3/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.