
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
trusted-accounts-sdk-node
Advanced tools
Place this code on your website to show a validation button that starts the validation process. Get your platform credentials by creating a developer account for free in the developer console.
npm install --save trusted-accounts-sdk-node
import TrustedAccountsClient from 'trusted-accounts-sdk-node';
app.get('/start-verification', async (req, res) => {
const trustedClient = new TrustedAccountsClient(
"CLIENT_ID", // Your Client ID
"REDIRECT_URL" // Your Redirect URI
);
// Generate the verification URL
const verificationUrl = await trustedClient.generateVerificationLink(
'foo@bar.com', // The email of the user you want to validate
);
// Redirect the user to the verification page
// or create a verification button to trigger it manually
res.redirect(verificationUrl);
});
After the user completes the verification, they will be redirected back to your redirect URL. Place this code on your website at this url to handle this callback and get the Trusted ID.
app.get('/callback', async (req, res) => {
// Get the Trusted ID by passing the code_verifier
const trustedId = await trustedClient.handleCallback(req, code_verifier);
res.send('Verification completed! Trusted ID: ' + trustedId);
});
That's it! You have successfully integrated Trusted Accounts on your platform! 🖖 Try validate yourself and then go to the user list in the developer console to find the newly validated user.
FAQs
A simple SDK for Trusted Accounts for NodeJS
The npm package trusted-accounts-sdk-node receives a total of 4 weekly downloads. As such, trusted-accounts-sdk-node popularity was classified as not popular.
We found that trusted-accounts-sdk-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.