Skip to main content

An unofficial Node.js port of the Python library itsdangerous.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 weeks ago (2.0.3)
class BadTimeSignatureError

Error thrown when a time-based signature is invalid, typically due to an incorrect or expired timestamp. Extends BadSignatureError and adds a timestamp indicating when the data was originally signed.

Constructors

new
BadTimeSignatureError(
message: string,
payload: Uint8Array,
dateSigned?: Date,
)

Constructs a new BadTimeSignatureError instance.

Properties

abstract
dateSigned: Date

The date and time when the data was signed, if available.

Add Package

deno add jsr:@hampus/itsdangerous

Import symbol

import { BadTimeSignatureError } from "@hampus/itsdangerous";

---- OR ----

Import directly with a jsr specifier

import { BadTimeSignatureError } from "jsr:@hampus/itsdangerous";

Add Package

npx jsr add @hampus/itsdangerous

Import symbol

import { BadTimeSignatureError } from "@hampus/itsdangerous";

Add Package

yarn dlx jsr add @hampus/itsdangerous

Import symbol

import { BadTimeSignatureError } from "@hampus/itsdangerous";

Add Package

pnpm dlx jsr add @hampus/itsdangerous

Import symbol

import { BadTimeSignatureError } from "@hampus/itsdangerous";

Add Package

bunx jsr add @hampus/itsdangerous

Import symbol

import { BadTimeSignatureError } from "@hampus/itsdangerous";