Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@privy-io/js-sdk-core
Advanced tools
const privy = new Privy({appId: '<your-app-id-here>'});
await privy.auth.sms.sendCode('+1 555 555 5555');
const {user} = await privy.auth.sms.loginWithCode('+1 555 555 5555', '123123');
// Or use the embedded wallet with viem
import {createWalletClient, custom} from 'viem';
// Initialize the client
const privy = new Privy({appId: '<your-app-id-here>'});
// Log in
await privy.auth.sms.sendCode('+1 555 555 5555');
const {user} = await privy.auth.sms.loginWithCode('+1 555 555 5555', '123123');
// Create an embedded wallet
const wallet = await privy.embeddedWallet.create();
// Use the embedded wallet
const accounts = await wallet.request({method: 'eth_requestAccounts'});
const response = await wallet.request({
method: 'eth_sendTransaction',
params: [
{
from: accounts[0],
to: '0x0000000000000000000000000000000000000000',
value: '1',
},
],
});
const viemWalletClient = createWalletClient({
chain: mainnet,
transport: custom(wallet),
});
// use viem to sign a message
await viemWalletClient.signMessage({
message: 'Hello from Privy!',
account: wallet.address,
});
FAQs
Vanilla JS client for the Privy Auth API
The npm package @privy-io/js-sdk-core receives a total of 0 weekly downloads. As such, @privy-io/js-sdk-core popularity was classified as not popular.
We found that @privy-io/js-sdk-core 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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.