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

@vizualkei/fanidface-client-sdk

v0.33.4

Published

FanIDFace Client SDK - Biometric authentication SDK for webapp integration

Downloads

601

Readme

FanIDFace Client SDK

Client-side TypeScript SDK for browser-based apps integrating FanIDFace biometric authentication.

This package exposes the FanIDFaceClientHelper API for:

  • requesting BST-backed biometric operations from your server
  • launching the FanIDFace mobile flow from phone and desktop browsers
  • receiving signed BRT results from the FanIDFace flow

Installation

pnpm add @vizualkei/fanidface-client-sdk

Token Model

FanIDFace web integrations use two tokens:

  • BST — Biometric Session Token
    • issued by your server before a biometric operation starts
    • short-lived and bound to a single flow
  • BRT — Biometric Result Token
    • returned after the biometric operation completes
    • sent back to your server for validation

Typical flow:

  1. your server issues a BST
  2. the client launches the FanIDFace biometric flow
  3. the biometric flow returns a BRT
  4. your server validates the BRT

Quick Start

import { fanidfaceClientHelper } from '@vizualkei/fanidface-client-sdk';

const fanidfaceClient = fanidfaceClientHelper.init({
  biometricSessionUrl: '/api/biometric-session',
  biometricResultUrl: '/api/biometric-results',
  fetcher: (input, init) => fetch(input, init),
});

const brt = await fanidfaceClient.authenticateUser();

FanIDFaceClientHelper

FanIDFaceClientHelper is the main API of this package.

It handles:

  • requesting BSTs from your server
  • initializing the FanIDFace mobile SDK
  • submitting returned BRTs back to your server

FanIDFaceClientHelperConfig

| Field | Type | Required | Description | |-------|------|----------|-------------| | biometricSessionUrl | string | Yes | Server endpoint that issues BSTs | | biometricResultUrl | string | Yes | Server endpoint that receives BRTs | | fetcher | (input, init?) => Promise<Response> | Yes | Fetch function used by the helper | | biometricService | string | No | FanIDFace biometric server base URL | | onQrCode | function | No | Desktop QR flow callback | | onAppLaunchFailed | function | No | Callback when app launch likely failed | | sdkOptions | object | No | Additional FanIDFace mobile SDK options | | resultPayloadBuilder | function | No | Custom builder for BRT submit payload |

Helper Methods

ensureInitialized()

Initializes the underlying client early if desired.

enrollUser(user, enrollOptions?)

Starts a FanIDFace enrollment flow and returns a BRT.

restoreUser()

Starts a restore flow and returns a BRT.

authenticateUser()

Starts an authentication flow and returns a BRT.

authenticateUserDirect()

Starts authentication but returns the BRT directly without auto-submitting it to the configured result endpoint.

unenrollUser()

Starts an unenrollment flow and returns a BRT.

retrieveKey()

Runs the offline retrieve-key flow.

clearUser()

Clears the local user on the device.

parseRetrieveKeyResult(jsonString)

Parses the pasted result from the retrieve-key flow.

Additional Exports

  • FanIDFaceError
  • FanIDFaceMobileFactory
  • FanIDFaceMobileInterface
  • FanIDFaceMobileOptions
  • getFanIDFaceMobileInstallUrl
  • FANIDFACE_MOBILE_PLAY_STORE_URL

License

Apache-2.0