@types/cookie-signature

  • Version 1.0.3
  • Published
  • 3.27 kB
  • No dependencies
  • MIT license

Install

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

Overview

TypeScript definitions for cookie-signature

Index

Functions

function sign

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

function unsign

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

Package Files (1)

Dependencies (0)

No dependencies.

Dev Dependencies (0)

No dev dependencies.

Peer Dependencies (0)

No peer dependencies.

Badge

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
    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/cookie-signature)
  • 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>