0.1.2 • Published 5 years ago

seal-middleware v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

travis Commitizen friendly

logo seal-middleware

seal-middleware

secure your api endpoint by limiting access over period of time.

Instalation

using yarn or npm

npm install seal-middleware

How To Use

Initial

Import and initial seal module, setup your app key and expired time of seal.

import Seal from 'seal-middleware`
const seal = new Seal('your app key', 5000)

Available Commands

  • Generate seal
    const myseal = seal.generateSeal()
  • Seal validation
    const {is_valid} = seal.validate(grdasd65a6wudtwy786)

Samples

  • Used on api endpoint
    https://api.host.com/endpoint/:seal
    If seal expired, response from api is request invalid or forbidden access.

Links

Contributors

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.1-beta.1

6 years ago

0.0.1-beta.0

6 years ago

0.0.0

6 years ago