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 BadSignatureError
extends BadDataError

Error thrown when a data signature does not match the expected value. This error provides access to the original payload, which may still hold value despite the tampering indicated by the invalid signature.

Constructors

new
BadSignatureError(
message: string,
payload: Uint8Array,
)

Constructs a new BadSignatureError instance.

Properties

The original payload that failed signature verification.

Add Package

deno add jsr:@hampus/itsdangerous

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @hampus/itsdangerous

Import symbol

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

Add Package

yarn dlx jsr add @hampus/itsdangerous

Import symbol

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

Add Package

pnpm dlx jsr add @hampus/itsdangerous

Import symbol

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

Add Package

bunx jsr add @hampus/itsdangerous

Import symbol

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