
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
fb_oauth is ease of use express middleware which implements facebook authentication(OAuth2.0). you can integrate facebook API authentication simply by adding fb_oauth to your nodejs application. below code example shows how to register fb_oauth into the express based app.
var express = require('express');
var fb = require('fb_oauth');
var app = express();
app.use(fb({
client_id : 'YOUR CLIENTID',
client_secret : 'YOUR CLIENTSECRET'
}));
below code example show how you can initiate oauth flow. fb_oauth use EventEmitter for result delivery so you have to add listener if you want to get valid token.
var express = require('express');
var router = express.Router();
var fb_oauth = require('fb_oauth').OAuth;
router.get('/login', function(req, res, next) {
fb_oauth.on(fb_oauth.Events.ON_SUCCESS, function(token){
/*you can get valid token here*/
});
fb_oauth.on(fb_oauth.Events.ON_FAIL, function(err) {
/*handle error condition here*/
});
fb_oauth.authenticate(req,res,['public_profile','email'],{
onsuccess : '/', /*if authentication is successful,client will redirect to '/' */
onfail : '/fail' /*if authentication fails, client will redirect to '/fail' */
});
});
FAQs
simple facebook integration module
We found that fb_oauth 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.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.