3.0.0 • Published 11 months ago
@otterhttp/cookie-signature v3.0.0
@otterhttp/cookie-signature
HTTP cookie signing and unsigning. A rewrite of cookie-signature module.
Install
pnpm i @otterhttp/cookie-signature
API
import { sign, unsign } from '@otterhttp/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.
3.0.0
11 months ago