Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@feathersjs/authentication-jwt
Advanced tools
JWT authentication strategy for feathers-authentication using Passport
JWT authentication strategy for feathers-authentication using Passport
npm install @feathersjs/authentication-jwt --save
const feathers = require('@feathersjs/feathers');
const authentication = require('feathers-authentication');
const jwt = require('@feathersjs/authentication-jwt');
const app = feathers();
// Setup authentication
app.configure(authentication(settings));
app.configure(jwt());
// Setup a hook to only allow valid JWTs to authenticate
// and get new JWT access tokens
app.service('authentication').hooks({
before: {
create: [
authentication.hooks.authenticate(['jwt'])
]
}
});
Please refer to the @feathersjs/authentication-jwt documentation for more details.
Copyright (c) 2018
Licensed under the MIT license.
FAQs
JWT authentication strategy for feathers-authentication using Passport
The npm package @feathersjs/authentication-jwt receives a total of 1,266 weekly downloads. As such, @feathersjs/authentication-jwt popularity was classified as popular.
We found that @feathersjs/authentication-jwt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.