Socket
Book a DemoInstallSign in
Socket

@trustflight/authentication-jwt-npm

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trustflight/authentication-jwt-npm

Authentication JWT NPM

latest
npmnpm
Version
1.2.0
Version published
Maintainers
5
Created
Source

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

FAQs

Package last updated on 24 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts