• Version 1.1.2
  • Published
  • 3.42 kB
  • 1 dependency
  • MIT license


npm i @types/cookie-signature
yarn add @types/cookie-signature
pnpm add @types/cookie-signature


TypeScript definitions for cookie-signature



function sign

sign: (value: string, secret: CipherKey) => string;
  • Sign the given val with secret.

function unsign

unsign: (value: string, secret: CipherKey) => string | false;
  • Unsign and decode the given val with secret, returning false if the signature is invalid.

Package Files (1)

Dependencies (1)

Dev Dependencies (0)

No dev dependencies.

Peer Dependencies (0)

No peer dependencies.


To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/cookie-signature.

  • Markdown
  • HTML
    <a href="https://www.jsdocs.io/package/@types/cookie-signature"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>