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

@idnow/react-videoident

v0.0.4

Published

VideoIdent SDK - ReactNative module

Readme

VideoIdent SDK - ReactNative Module

Getting started

Add the package to your dependencies

# with npm
npm install @idnow/react-videoident

# with yarn
yarn add @idnow/react-videoident

Usage

import * as idnow from '@idnow/react-videoident';
// or
import { startIdent } from '@idnow/react-videoident';

Start an identification session

import { startIdent } from '@idnow/react-videoident';

const startIdentification = async (token: string) => {
  try {
    const result = await startIdent(token);

    switch (result.status) {
      case 'SUCCESS':
        console.log('Identification completed. Token:', result.transactionToken);
        break;

      case 'CANCELLED':
        console.log('Identification cancelled:', result.errorMessage);
        break;

      case 'USER_IN_QUEUE':
        console.log('User enrolled in waiting list. Will be notified via SMS.');
        break;

      case 'WRONG_IDENT':
        // Android only
        console.log('Wrong identification token:', result.errorMessage);
        break;
    }

  } catch (error) {
    console.error('Error code:', error.code);
    console.error('Error message:', error.message);
  }
};

API Reference

startIdent(token: string): Promise<IdNowResult>

Starts the native IDnow VideoIdent SDK for an identification session.

Parameters:

  • token — A string representing the Identification Token.

Returns: A Promise that resolves with an IdNowResult object or rejects with an error.


Result Types

IdNowResult

interface IdNowResult {
  status: IdNowStatus;
  transactionToken?: string;
  errorMessage?: string;
}

IdNowStatus

| Status | Description | Platform | |---|---|---| | SUCCESS | Identification completed successfully | iOS & Android | | CANCELLED | User cancelled the identification | iOS & Android | | USER_IN_QUEUE | User enrolled in waiting list, will be notified via SMS | iOS & Android | | WRONG_IDENT | User used a wrong identification token | Android only |


Error Handling

startIdent returns a Promise. When the identification process encounters a fatal error, the promise is rejected with an error object containing a code and a message.

try {
  const result = await startIdent(token);
} catch (error) {
  console.error(error.code);  
  console.error(error.message);
}

Error Codes

| Error Code | Description | Platform | |---|---|---| | IDnowErrorMissingTransactionToken | The identification token is missing or invalid | iOS & Android | | IDnowErrorOfficeClosed | Identification not available outside business hours | iOS & Android | | IDnowErrorUnsupportedDevice | Device does not meet minimal requirements | iOS & Android | | IDnowErrorCameraAccessNotGranted | Camera permission was not granted | iOS & Android | | IDnowErrorMicrophoneAccessNotGranted | Microphone permission was not granted | iOS & Android | | IDnowErrorNoInternetConnection | No internet connection available | iOS & Android | | IDnowErrorServer | A server error occurred | iOS & Android | | IDnowErrorWebRTC | Could not establish a video connection | iOS & Android | | IDnowErrorIdentificationFailed | The identification process failed | iOS & Android | | IDnowErrorHighCallVolumeTryLater | High call volume, user agreed to try later | iOS & Android | | IDnowErrorTokenNotSupported | Token is meant for a different product | iOS & Android | | IDnowErrorTokenNotSupported_eIDStandalone | eID standalone token cannot be used for VideoIdent | iOS & Android | | IDnowErrorUnsupportedProduct | Product is no longer supported | iOS & Android | | IDnowErrorUnsupportedBluetoothHeadset | Bluetooth headset used despite being disabled | iOS & Android | | IDnowInstantSignDocumentExpired | The trusted document has expired | iOS & Android | | IDnowErrorJailbreakPhoneNotSupported | Identification not supported on jailbroken devices | iOS only | | IDnowErrorRootedPhoneNotSupported | Identification not supported on rooted devices | Android only | | SDK_INIT_ERROR | The IDnow SDK could not be initialized | iOS & Android | | IDENT_FAILED | Identification failed with no specific error code | iOS & Android |


Configure for iOS

Requirements

  • iOS 14.0 or higher

Permissions

Add the following keys to your Info.plist:

<key>NSCameraUsageDescription</key>
<string>This app requires camera access for identity verification.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This app requires microphone access for identity verification.</string>

Configure for Android

Requirements

  • Android SDK 26 or higher

Dependencies

The IDnow VideoIdent SDK might requires those BouncyCastle suite for cryptography and TLS. Add the following to your build.gradle:

dependencies {
    implementation ("org.bouncycastle:bcprov-jdk15to18:1.72")
    implementation ("org.bouncycastle:bctls-jdk15to18:1.72")
    implementation ("org.bouncycastle:bcutil-jdk15to18:1.72")
}

⚠️ All 3 BouncyCastle artifacts must use the same version to avoid runtime conflicts.

Permissions

The following needed permissions are automatically included by the SDK. No manual addition is required:


Platform Behaviour Differences

| Behaviour | iOS | Android | |---|---|---| | WRONG_IDENT status | Not available | ✅ Available | | Jailbreak/Root detection error | IDnowErrorJailbreakPhoneNotSupported | IDnowErrorRootedPhoneNotSupported | | Server HTTP status code | Not exposed | Appended to error message on IDnowErrorServer |