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

@wyasolutions/react-native-wya-verify-sdk

v1.0.5

Published

WYA Verify provides KYC + Proof of Person via digital onboarding and face recognition.

Readme

React Native WYA Verify SDK

WYA Verify provides KYC + Proof of Person via digital onboarding and face recognition.

Installation

npm install @wyasolutions/react-native-wya-verify-sdk

Usage

Integration Flows

Onboarding

sequenceDiagram
  autonumber
  actor App as Integrator App
  participant RN as React Native SDK
  participant Native as Native Bridge (iOS/Android)
  participant WYA as WYA Verify SDK
  participant Backend as Integrator Backend

  App->>RN: startOnboarding({publicKey, idType, environment?})
  RN->>Native: startOnboarding({publicKey, mode, idType})
  Native->>WYA: launch onboarding
  WYA-->>Native: result (raw)
  Native-->>RN: resolve(result)
  RN-->>App: WyaOnboardingResult {verified, raw}

Face Match

sequenceDiagram
  autonumber
  actor App as Integrator App
  participant RN as React Native SDK
  participant Native as Native Bridge (iOS/Android)
  participant WYA as WYA Verify SDK
  participant Backend as Integrator Backend

  App->>Backend: /init (request operationId)
  Backend-->>App: operationId
  App->>RN: startFaceMatch({publicKey, operationId, environment?})
  RN->>Native: startFaceRecognition({publicKey, mode, faceOperation: MATCH})
  Native->>WYA: launch face match
  WYA-->>Native: result {operationId, status, decision}
  Native-->>RN: resolve(result)
  RN-->>App: WyaFaceMatchResult {verified, raw}

Face Enroll

sequenceDiagram
  autonumber
  actor App as Integrator App
  participant RN as React Native SDK
  participant Native as Native Bridge (iOS/Android)
  participant WYA as WYA Verify SDK
  participant Backend as Integrator Backend

  App->>Backend: /init (request operationId)
  Backend-->>App: operationId
  App->>RN: startFaceEnroll({publicKey, operationId, environment?})
  RN->>Native: startFaceEnroll({publicKey, mode, faceOperation: ENROLL})
  Native->>WYA: launch face enroll
  WYA-->>Native: result {operationId, status, decision}
  Native-->>RN: resolve(result)
  RN-->>App: WyaFaceEnrollResult {enrolled, raw}

Onboarding

import { startOnboarding } from '@wyasolutions/react-native-wya-verify-sdk';

const result = await startOnboarding({
  publicKey: '<public-key>',
  environment: 'SANDBOX',
  idType: 'ARG_3',
  operationId: '<operation-id>',
  nonce: '<nonce>',
});

// JWT is available inside result.raw.

Face Match (Verify)

import { startFaceMatch } from '@wyasolutions/react-native-wya-verify-sdk';

const result = await startFaceMatch({
  publicKey: '<public-key>',
  environment: 'SANDBOX',
  operationId: '<operation-id>',
  nonce: '<nonce>',
});

// result.verified indicates whether the face matched.
// result.raw includes operationId, status, and decision from the native SDK.

Face Enroll (Registration)

import { startFaceEnroll } from '@wyasolutions/react-native-wya-verify-sdk';

const result = await startFaceEnroll({
  publicKey: '<public-key>',
  environment: 'SANDBOX',
  operationId: '<operation-id>',
  nonce: '<nonce>',
});

// result.enrolled indicates whether the enrollment completed.

API

startOnboarding(params): Promise<WyaOnboardingResult>
startFaceMatch(params): Promise<WyaFaceMatchResult>
startFaceEnroll(params): Promise<WyaFaceEnrollResult>
isAvailable(): Promise<boolean>
getVersion(): Promise<{ wrapper: string; android?: string; ios?: string }>

Parameters

  • OnboardingParams
    • publicKey: string
    • idType: string
    • environment?: 'SANDBOX' | 'PROD' | 'DEVELOPMENT' (default: PROD)
    • operationId?: string
    • nonce?: string
  • FaceMatchParams
    • publicKey: string
    • environment?: 'SANDBOX' | 'PROD' | 'DEVELOPMENT' (default: PROD)
    • operationId: string
    • nonce: string
  • FaceEnrollParams
    • publicKey: string
    • environment?: 'SANDBOX' | 'PROD' | 'DEVELOPMENT' (default: PROD)
    • operationId: string
    • nonce: string

Return Values

  • WyaOnboardingResult
    • verified: boolean
    • raw?: json object
  • WyaFaceMatchResult
    • verified: boolean
    • raw?: json object
  • WyaFaceEnrollResult
    • enrolled: boolean
    • raw?: json object

Errors

Errors are thrown as WyaError with:

  • code:
    • E_INVALID_PARAMS
    • E_CANCELLED
    • E_NATIVE_FAILURE
    • E_ACTIVITY_MISSING
    • E_UNSUPPORTED_PLATFORM
  • message
  • details?

React Native Compatibility

  • Supported React Native versions: 0.71.x to 0.83.x.

Security

  • Do not commit public keys, JWTs, or other secrets to source control.
  • Avoid logging biometric data or JWT payloads.
  • Store credentials securely and pass them at runtime.