Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
fastify-jwt
Advanced tools
JWT utils for Fastify, internally uses jsonwebtoken.
npm i fastify-jwt --save
Register it as plugin and then access it via jwt
.
The api is the same of jsonwebtoken, refer to their documentation to find how use the utilities.
const fastify = require('fastify')
fastify.register(require('fastify-jwt'), { secret: 'supersecret' }, err => {
if (err) throw err
})
fastify.post('/signup', (req, reply) => {
// some code
const token = fastify.jwt.sign({ payload })
reply.send({ token })
})
fastify.listen(3000, err => {
if (err) throw err
})
This project is kindly sponsored by:
Licensed under MIT.
FAQs
`fastify-jwt@4.2.0` has been deprecated. Please use `@fastify/jwt@5.0.0` instead.
The npm package fastify-jwt receives a total of 4,705 weekly downloads. As such, fastify-jwt popularity was classified as popular.
We found that fastify-jwt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 open source maintainers 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.