@trustflight/authentication-jwt-npm

1.2.0 • Public • Published

How to use: const AuthService = require("@trustflight/authentication-jwt-npm"); server.use(AuthService.authenticationJWT());

  • Will validate JWT token (JWT source, request authorization header , or authorization cookie )
  • authorization header name can be passed as a parameter AuthService.authenticationJWT(<header name >)
  • JWT signature validation use secure key from environment variable ``` jwtSecret ` ``
  • Create new JWT AuthService.createJWT(<token body payload>)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    2

Package Sidebar

Install

npm i @trustflight/authentication-jwt-npm

Weekly Downloads

2

Version

1.2.0

License

ISC

Unpacked Size

2.74 kB

Total Files

4

Last publish

Collaborators

  • trustflight-admin
  • cstrandberg
  • lukebennett
  • trustflightreleasebot