
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
express-jwt-axss
Advanced tools
Middleware that validates JsonWebTokens and sets req.user
.
This module lets you authenticate HTTP requests using JWT tokens in your Node.js applications. JWTs are typically used to protect API endpoints, and are often issued using OpenID Connect.
This module if forked form the express-jwt Module made by @auth0. Followings points where changed:
options.skip
was removedcredentialsRequired
is set to false
a error is passed if credentials are passed but expiredoptions.getAntiXSSToken
Feature was addedThe getAntiXSSToken
Option can be switched on by setting it to true
or a getToken(req)
function.
If it is set to true
it will look for a second JWT in the req.cookies.token
Cookie.
This second JWT is required to have a refJit
Field containing the same unique identifier as
the first JWT in it's jit
Field. This can be used to help against simple XSS Attacks if, and only
if the second JWT is provided in a way JS cannot reach on the Client. Mainly a Cookie with
the HTTP-Only and Secure Flag set.
Note that the req.cookies
Field does only exists if a cookie parser is used.
With there for is a requirement if the getAntiXSSToken
Feature is used.
Pleas visit the original project for examples and documentation of the usage. (TODO add custom doku).
If you have found a bug or security vulnerability please check if it is also contained in the orginal project. If so please report it there like described in the orginal github repo. Else you can use the Issue Tracker
$ npm install
$ npm test
This project is licensed under the MIT license. See the LICENSE file for more info.
FAQs
JWT authentication middleware.
The npm package express-jwt-axss receives a total of 1 weekly downloads. As such, express-jwt-axss popularity was classified as not popular.
We found that express-jwt-axss 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.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.