Frontend/25_02_24/node_modules/@tinyhttp/cookie-signature
2025-02-25 09:55:29 +01:00
..
dist added doga 2025-02-25 09:55:29 +01:00
LICENSE added doga 2025-02-25 09:55:29 +01:00
package.json added doga 2025-02-25 09:55:29 +01:00
README.md added doga 2025-02-25 09:55:29 +01:00

@tinyhttp/cookie-signature

npm (scoped) npm

HTTP cookie signing and unsigning. A rewrite of cookie-signature module.

Install

pnpm i @tinyhttp/cookie-signature

API

import { sign, unsign } from '@tinyhttp/cookie-signature'

sign(val, secret)

Signd the given val with secret.

unsign(val, secret)

Unsign and decode the given val with secret, returning false if the signature is invalid.