Skip to main content
Module

x/djwt/mod.ts>getNumericDate

Create and verify JSON Web Tokens (JWT) with Deno or the browser.
Very Popular
Go to Latest
function getNumericDate
import { getNumericDate } from "https://deno.land/x/djwt@v2.8/mod.ts";

This helper function simplifies setting a NumericDate. It takes either a Date object or a number (in seconds) and returns the number of seconds from 1970-01-01T00:00:00Z UTC until the specified UTC date/time.

Parameters

exp: number | Date

Returns

number