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

Error thrown when a payload is determined to be invalid, potentially due to issues with deserialization, or if an invalid signature allowed the payload to be processed.

Constructors

new
BadPayloadError(
message: string,
originalError: $TsFixMe,
)

Constructs a new BadPayloadError instance.

Properties

originalError: $TsFixMe

The original error that led to the payload being marked as invalid.

Add Package

deno add jsr:@hampus/itsdangerous

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @hampus/itsdangerous

Import symbol

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

Add Package

yarn dlx jsr add @hampus/itsdangerous

Import symbol

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

Add Package

pnpm dlx jsr add @hampus/itsdangerous

Import symbol

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

Add Package

bunx jsr add @hampus/itsdangerous

Import symbol

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