
Product
Socket Brings Supply Chain Security to skills.sh
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.
Email verification for login
npm install email-auth --save
const emailAuth = require('email-auth');
// this should be a database really
let nextID = 0;
const tokens = {};
const client = createClient({
saveToken({email, token, expiry}) {
// save the token and return the id of the saved token, this can return a Promise
const id = nextID++;
tokens[id] = {email, token, expiry};
return id;
},
getTokenByID(id) {
// get the token at that id, can return a Promise
return tokens[id];
},
sendEmail({toAddress, url}) {
// send the message using to the to email asking the user to click on the url
},
});
// to send verification e-mail
client.sendMessage('forbes@lindesay.co.uk', 'https://example.com').done();
// to verify/complete a login
app.get('/', (req, res, next) => {
if (req.query.id && req.query.token) {
client.verifyToken(req.query.id, req.query.token).done(email => {
// log the user in
}, next);
}
// show the user a login page
})
MIT
FAQs
Email verification for login
The npm package email-auth receives a total of 3 weekly downloads. As such, email-auth popularity was classified as not popular.
We found that email-auth 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 is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.