@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>)

Dependencies (3)

Dev Dependencies (0)

    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