@tinyhttp/cookie-signature
v2.1.1
Published
HTTP cookie signing and unsigning
Maintainers
Readme
@tinyhttp/cookie-signature
HTTP cookie signing and unsigning. A rewrite of cookie-signature module.
Install
pnpm i @tinyhttp/cookie-signatureAPI
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.
