
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
npm install zinid-js
This library provides a global object called zinIdAuth, which can be used in any javascript application for sign in and KYC verification by using the functions exported with the zinIdAuth object. The library can be implemented via npm and CDN, the guide below contains demo implementations via npm, See the documentation page of the zinId website for demo CDN implementations.
The sign in can be implemented via two different functions, one being the createSigninButton and the other being the initializeSignIn method.
The createSigninButton method returns a custom zinId signin button which will be appended to the container if provided. It is recommended to provide an element as the container, but if no element is provided, You can append the returned button to an element.
// Using npm module
import zinIdAuth from 'zinid-auth';
// Create a ZinId sign-in button with default ZinId style and append it to a container
const button = zinIdAuth.createSigninButton({
sdkToken: 'YOUR_SDK_TOKEN',
container: '#button-container',
onSuccess: (data) => {
console.log('Successfully authenticated:', data);
}
});
zinIdAuth.initializeSignIn({
sdkToken: 'YOUR_SDK_TOKEN',
onSuccess: (data) => {
console.log('Successfully authenticated:', data);
}
});
The KYC verification can be implemented via two different functions, one being the createVerifyButton and the other being the initializeVerify method.
The createVerifyButton method returns a custom zinId verify button which will be appended to the container if provided. It is recommended to provide an element as the container, but if no element is provided, You can append the returned button to an element.
// Using npm module
import zinIdAuth from 'zinid-auth';
// Create a ZinId Verify button with default ZinId style and append it to a container
const button = zinIdAuth.createVerifyButton({
sdkToken: 'YOUR_SDK_TOKEN',
container: '#button-container',
onSuccess: (data) => {
console.log('Successfully verified:', data);
}
});
zinIdAuth.initializeVerify({
sdkToken: 'YOUR_SDK_TOKEN',
onSuccess: (data) => {
console.log('Successfully verified:', data);
}
});
zinIdAuth.createSigninButton(options)
Creates a "Sign in with ZinId" button with default ZinId style and optionally appends it to a container if provided.
Returns
zinIdAuth.initializeSignIn(options)
Initiates the sign-in process programmatically. Parameters
zinIdAuth.createVerifyButton(options)
Creates a "Verify with ZinId" button with default ZinId style and optionally appends it to a container.
Returns
zinIdAuth.initializeVerify(options)
Initiates the KYC verification process programmatically. Parameters
FAQs
Universal Sign in and KYC Verification SDK for ZinId
We found that zinid-js demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.