Skip to content

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

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages