
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@rss/common-nodejs
Advanced tools
RSS shared Node.js library for cross cutting concerns.
$ npm install @rss/common-nodejs
TokenHelper must be initialized before calling methods on it.
const { env, TokenHelper } = require('@rss/common-nodejs');
TokenHelper.initialize({
tokenClientName: env.TOKEN_CLIENT_NAME,
tokenClientKey: env.TOKEN_CLIENT_KEY,
tokenServerURL: env.TOKEN_SERVER_URL,
redis: { host: env.REDIS_HOST } // Optional. Ff not provided it will use in memory NodeCache
});
const appClientToken = await TokenHelper.clientToken();
The RSS authentication strategy authenticates users using a token passed in on the Authorization request header.
The strategy requires a verify callback, which accepts a valid decoded token and calls done providing a user.
passport.use(new Strategy({ tokenHelper: TokenHelper }, (decodedToken, done) => {
// load user
const user = decodedToken;
return done(null, user);
}));
Use passport.authenticate(), specifying the 'rss' strategy, to
authenticate requests.
app.post('/api/sample', passport.authenticate('rss', { usage: 'CLIENT', session: false }), (req, res) => {
res.redirect('/');
});
This strategy takes an hash value with the following options
session - Options, save user to session - should be set to falseusage - Optional, what token type is acceptable. Default to all but can limit to [CLIENT] or [USER,CLIENT]FAQs
RSS shared Node.js library
The npm package @rss/common-nodejs receives a total of 188 weekly downloads. As such, @rss/common-nodejs popularity was classified as not popular.
We found that @rss/common-nodejs demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.