Skip to content

A simple Windows-only React Native TurboModule for secure, OS-managed encryption storage using the Windows Credential Locker.

Notifications You must be signed in to change notification settings

dioo1461/rnw-secure-storage

Repository files navigation

rnw-secure-storage

A simple Windows-only React Native TurboModule for secure, OS-managed encryption storage using the Windows Credential Locker (PasswordVault).

Features

  • Automatic overwrite on duplicate keys
  • Data is automatically purged when the app is uninstalled

API

  • getItem(key: string): Promise<string | null>
  • setItem(key: string, value: string): Promise<void>
  • deleteItem(key: string): Promise<void>

Installation

npm install rnw-secure-storage

Usage

import * as rnwSS from 'rnw-secure-storage';

async function example() {
  await rnwSS.setItem('targetKey', 'abc123');
  const targetValue = await rnwSS.getItem('targetKey'); // "abc123" 
  await rnwSS.deleteItem('targetKey');
}

About

A simple Windows-only React Native TurboModule for secure, OS-managed encryption storage using the Windows Credential Locker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published