
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
hapi JSON Web Token (JWT) authentication plugin
The 'jwt' scheme takes the following options:
secret - (required) {string} secret key used to compute the signature.algorithms - (optional) {array} algorithm(s) allowed to verify tokens. Defaults to ['HS256']. Valid algorithms: ['HS256', 'HS384', 'HS512', 'RS256', 'RS384', 'RS512', 'ES256', 'ES384', 'ES512', 'none']audience - (optional) {string} verify audience (aud) claim against this valuecookie - (optional) {string} cookie name. Defaults to sid. Works in tandem with hapi-auth-cookie.
Must set JWT when the cookie is set. See examples below.issuer - (optional) {string} verify issuer (iss) claim against this valuetoken - (optional) {string} name of the token set in the cookie. Defaults to token.validateFunc - (optional) {function} function to validate the decoded token on every request.Note: Storing the JWT in a cookie is optional. You can always send the JWT in an Authorization header.
For examples of usage, check out the tests.
FAQs
hapi JSON Web Token (JWT) authentication plugin
The npm package jot receives a total of 6 weekly downloads. As such, jot popularity was classified as not popular.
We found that jot 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
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.