3.0.0 • Published 1 year 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-signatureAPI
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
1 year ago