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

@hituchhimpa/react-native-auth-vault

v1.0.4

Published

Native-first React Native security and authentication library

Readme

🛡️ React Native Auth Vault

A native-first security and authentication library for React Native that leverages the Android Keystore, StrongBox, and iOS Secure Enclave to protect sensitive application data.

Built for applications that require secure credential storage, biometric authentication, encrypted local secrets, and runtime security auditing.


Why Auth Vault?

Most secure-storage libraries only encrypt data. Auth Vault goes further by:

  • 🔐 Hardware-Backed Protection: Keeping cryptographic keys inside hardware-backed security modules whenever available.
  • 👆 Biometrics Integration: Supporting Face ID, Touch ID, and Android Biometrics out of the box.
  • Silent Encryption: Allowing silent encryption for background operations without showing user prompts.
  • 🛡️ Security Posture Checks: Auditing device security posture before performing sensitive actions.
  • 🧵 Native Performance: Executing cryptographic operations natively on separate threads for improved performance.

✨ Features

🔑 Hardware-Backed Key Protection

Uses Android Keystore (TEE/StrongBox) and iOS Secure Enclave to generate and protect encryption keys.

👤 Biometric Authentication

Authenticate using Face ID, Touch ID, Fingerprint, or device credentials.

⚡ Silent Secure Storage

Store and retrieve encrypted secrets without displaying biometric prompts when appropriate.

🛡️ Security Auditing

Inspect device security status including:

  • Root/Jailbreak detection
  • Device lock screen configuration
  • Biometric enrollment
  • Hardware-backed key availability

📱 Native Performance

Runs cryptographic operations on native threads with React Native's modern architecture.


📱 Platform Support

| Platform | Supported | |-----------|-----------| | Android | ✅ | | iOS | ✅ | | React Native New Architecture | ✅ | | TypeScript | ✅ |


📦 Installation

npm install @hituchhimpa/react-native-auth-vault
# or
yarn add @hituchhimpa/react-native-auth-vault

For iOS, install the pods:

cd ios && pod install

⚙️ Configuration

iOS Setup (Mandatory)

For Face ID to work on iOS, you must add NSFaceIDUsageDescription to your application's ios/YourAppName/Info.plist file. If this is missing, the app will crash during biometric verification.

<key>NSFaceIDUsageDescription</key>
<string>This app requires Face ID permission to securely authenticate and access your credentials.</string>

Android Setup

No manual manifest setup is required. The library automatically bundles the required Android Biometric permissions.


🚀 Usage

1. Store & Retrieve with Biometric Protection

Prompt the user for biometrics (Face ID/Touch ID/Fingerprint/Passcode) to unlock access to the stored key:

import { AuthVault } from '@hituchhimpa/react-native-auth-vault';

// Save securely with biometrics
await AuthVault.setItem(
  'token',
  jwt,
  'Authenticate to save credentials'
);

// Retrieve securely
const token = await AuthVault.getItem(
  'token',
  'Authenticate to continue'
);

2. Silent Hardware-Backed Storage (Optional Biometrics)

Encrypt and store keys using hardware cryptoprocessors (Secure Enclave / TEE) silently without prompting the user:

// Silent hardware-backed encryption
await AuthVault.setItem('api_key', apiKey, '');

const apiKey = await AuthVault.getItem('api_key', '');

3. Device Security Auditing

Get security metrics to decide whether your app should run or restrict sensitive actions:

const security = AuthVault.audit();

if (security.isRooted) {
  console.warn('Untrusted device detected');
}

🔒 Security Architecture

Android

  • Keys generated inside Android Keystore
  • StrongBox support where available
  • Optional biometric-gated key access
  • AES-256 encryption

iOS

  • Keys protected by Secure Enclave
  • Keychain Access Control integration
  • Face ID / Touch ID protected operations
  • User presence verification support

🚀 Common Use Cases

  • Storing JWT access tokens
  • Refresh token protection
  • API request signing
  • Local credential storage
  • Banking and fintech applications
  • Healthcare applications
  • Enterprise authentication workflows

🗺️ Roadmap

Here is what we plan to release in the upcoming versions:

  • v1.1.0: Biometric enrollment change locking & auto-invalidation on Root/Jailbreak.
  • v1.2.0: Hardware-backed asymmetric key pairs (ECC/RSA) & cryptographic request signing.
  • v1.3.0: Anti-screenshot, anti-screen recording blockers & session key validity duration.

👤 Author

Developed and maintained by Hitesh Chhimpa.


📄 License

MIT