1.1.2 • Published 6 months ago

@types/cookie-signature v1.1.2

Weekly downloads
105,435
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/cookie-signature

Summary

This package contains type definitions for cookie-signature (https://github.com/tj/node-cookie-signature).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cookie-signature.

index.d.ts

// Type definitions for cookie-signature 1.0
// Project: https://github.com/tj/node-cookie-signature, https://github.com/visionmedia/node-cookie-signature
// Definitions by: Junyoung Choi <https://github.com/Rokt33r>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/** Sign the given `val` with `secret`. */
export function sign(value: string, secret: string): string;

/**
 * Unsign and decode the given `val` with `secret`,
 * returning `false` if the signature is invalid.
 */
export function unsign(value: string, secret: string): string | false;

Additional Details

  • Last updated: Thu, 23 Dec 2021 23:34:26 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Junyoung Choi.