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

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.