Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@particle-network/authkit
Advanced tools
Auth Core provides MPC (Multi-Party Computation)-based threshold signatures.
Auth Core provides MPC (Multi-Party Computation)-based threshold signatures.
Modal is implemented based on React, provides a rich set of hook functions and custom components.
Install Auth Core and its peer dependencies.
npm install @particle-network/authkit
# or
yarn add @particle-network/authkit
Init Auth Core with Particle project config, you can get the config from Particle Dashboard.
The modal support custom style, refer to Customize.
Wrap your application with AuthCoreContextProvider
.
import { AuthCoreContextProvider } from '@particle-network/authkit';
const App = () => {
// replace 'xxxx' with particle project config.
return (
<AuthCoreContextProvider
options={{
projectId: 'xxxx',
clientKey: 'xxxx',
appId: 'xxxx',
}}
>
<YourApp />
</AuthCoreContextProvider>
);
};
Custom you own connect button and call connect
function to connect Auth Core.
import { useConnect } from '@particle-network/authkit';
const { connect, disconnect, connectionStatus, requestConnectCaptcha } = useConnect();
// connect with email.
const userInfo = await connect({
email: 'xxx@xx.com',
code: 'xxxxxx', // optional
});
// connect with phone.
const userInfo = await connect({
phone: '+8618888888888',
code: 'xxxxxx', // optional
});
// connect with social type.
const userInfo = await connect({
socialType: 'google',
prompt: 'select_account', //optional
});
// connect with JWT.
const userInfo = await connect({
jwt: 'xxxxxxxxxx'
});
// disconnect
await disconnect();
EVM Wallet will be created when connect with EVM chains.
import { useEthereum } from '@particle-network/authkit';
// you can use eip1193 provider with `web3.js` or `ethers.js`
const { provider,
address,
chainId,
chainInfo,
switchChain,
signMessage,
signTypedData,
sendTransaction,
enable } = useEthereum();
// send transaction.
const txHash = await sendTransaction(txData);
// sign message.
const signature = await signMessage(message);
import { useSolana } from '@particle-network/authkit';
const { address,
chainId,
chainInfo,
switchChain,
signMessage,
signTransaction,
signAllTransactions,
signAndSendTransaction,
enable } = useSolana();
// send transaction.
const txHash = await signAndSendTransaction(txData);
// sign message.
const signature = await signMessage(message);
FAQs
Auth Core provides MPC (Multi-Party Computation)-based threshold signatures.
The npm package @particle-network/authkit receives a total of 1,460 weekly downloads. As such, @particle-network/authkit popularity was classified as popular.
We found that @particle-network/authkit 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.