npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

zinid-react

v1.2.2

Published

ZinID Signin and KYC verification SDK for React.

Readme

zinid-react

💾 Installation

npm install zinid-react

or with yarn

yarn add zinid-react

📄 Usage

This library can be used in any react application for sign in and KYC verification. The signin can only be implemented via a signin button exported by the library, while the KYC verification can be implemeted via a verification button or a custom hook exported by the library

1. Sign in using the zinid signin button

// Import ZinIdSignInButton component
import {ZinIdSignInButton} from "zinid-react"

// Use it in your code like so
export const MyComponent = () => {

  const sdkToken = "your_unique_sdk_token_generated_on_the_zinid_vendor_website"

       // you can call this function anything
    const handleZinidSigninSuccess = (data: SignInCredentialresponse) => {
      // Implementation for whatever you want to do with data after success call.
      console.log(data);
    };

    const handleZinidSigninError = (error: Error) => {
       // Implementation for whatever you want to do with the error 
      console.log(error);
    }


  return (
    <>
      <ZinIdSignInButton  className="mt-2" sdkToken={sdkToken} onSuccess={handleZinidSigninSuccess} onError={handleZinidSigninError} />
    </>
  );
};

🪄 Props for the ZinId Signin Button

Here's a table of all available props for the ZinIdSignIn Button.

Required | Prop | Description | Type | default | --- | --- | --- | --- | --- | ✓ | sdkToken | SDK token which is unique to every vendor. This token can be generated on the Zinid vendor app| string |   | onSuccess | Callback fires with credential response after successfully sign in. | (response: {data:{email: "[email protected]", first_name: "user_first_name", zinid:"user_zinid"}, success: true}) => void |   | onError | Callback fires with error after failed sign in. | ({error:string}) => void |   | text | Sets the button text. | string | Sign in with ZinID |   | className | Custom classname for the button | string |   | disabled | Boolean Condition to disable button | boolean |

2. Verify KYC using the zinid verify button

// Import ZinIdVerifyButton component
import {ZinIdVerifyButton} from "zinid-react"

// Use it in your code like so
export const MyComponent = () => {

  const sdkToken = "your_unique_sdk_token_generated_on_the_zinid_vendor_website"

  const customerId = "" // the customerId could be a unique string or integer or uuid which serves as a reference for identifying each verification instance and is recommended to be generated on the backend.

       // you can call this function anything
    const handleZinIdVerifySuccess = (data: VerifyCredentialResponse) => {
      // Implementation for whatever you want to do with data after success call.
      console.log(data);
    };

     const handleZinIdVerifyError = (error: Error) => {
       // Implementation for whatever you want to do with the error 
      console.log(error);
    }


  return (
    <>
      <ZinIdVerifyButton  className="mt-2" sdkToken={sdkToken} customerId={customerId} onSuccess={handleZinIdVerifySuccess} onError={handleZinIdVerifyError} />
    </>
  );
};

🪄 Props for the ZinId Verify Button

Here's a table of all available props for the ZinIdVerify Button

Required | Prop | Description | Type | default | --- | --- | --- | --- | --- | ✓ | sdkToken | SDK token which is unique to every vendor. This token can be generated on the Zinid vendor app| string | ✓ | customerId | unique string or integer or uuid which serves as a reference for identifying each verification instance and is recommended to be generated on the backend.| any |   | onSuccess | Callback fires with credential response after successful verification. | ({data:{success: true, end: true, message: "Verification completed."}) => void |   | onError | Callback fires with error after failed KYC verification. | ({error:string}) => void |   | text | Sets the button text. | string | Verify with ZinID |   | className | Custom classname for the button | string |   | disabled | Boolean Condition to disable button | boolean |

3. Verify KYC using the useZinIdVerification hook

// Import useZinIdVerification hook
import {useZinIdVerification} from "zinid-react"

// Use it in your code like so
export const MyComponent = () => {

  const sdkToken = "your_unique_sdk_token_generated_on_the_zinid_vendor_website"

    const config: VerifyConfig = {
    sdkToken,
    onSuccess: (data: VerifyCredentialResponse)=> console.log(data, "data"),
    onError: (error: Error) => console.log(error, 'error')
  };

    const initializeVerification = useZinIdVerification(config);

    const customerId = "" // the customerId could be a unique string or integer or uuid which serves as a reference for identifying each verification instance and is recommended to be generated on the backend. 

    const handleVerificationClick = () => {
    initializeVerification(customerId)
  }


  return (
    <>
      <button onClick={handleVerificationClick} > Verify With ZinId </button>
    </>
  );
};

🪄 Props for the useZinIdVerification hook

Here's a table of all available config options for the useZinIdVerification hook.

Required | Prop | Description | Type | default | --- | --- | --- | --- | --- | ✓ | sdkToken | SDK token which is unique to every vendor. This token can be generated on the Zinid vendor app| string | ✓ | customerId | unique string or integer or uuid which serves as a reference for identifying each verification instance and is recommended to be generated on the backend.| any |   | onSuccess | Callback fires with credential response after successful verification. | ({data:{success: true, end: true, message: "Verification completed."}) => void |   | onError | Callback fires with error after failed KYC verification. | ({error:string}) => void |