
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
This module exports a middleware that can be used in Express applications to validate the presence of a valid JWT in the request header.
It requires the JWT key used to encode the tokens to be stored in the environment variable JWT_KEY (pending to make it parameterizable). If token is successfully decoded, isjwted will add the payload as an object named jwtData in the request (eg. request.jwtData: {...}). If there is any error decoding/verifying the token, isjwted will send the response back with code 401 (default). This can be changed to return an Error object to the next function via the env variable ISJWTED_SEND_RESPONSE
You can attach this middlewre to all the routes you need to protect from non logged users.
Node 8+ NPM Env variable JWT_KEY. (Optional) Env variable ISJWTED_SEND_RESPONSE (true/false)
jsonwebtoken node module.
Dev-dependecies: mocha chai chai-http
FAQs
an expess middleware to check if requests contain a valid JWT token.
We found that isjwted demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.