@virgilsecurity/key-storage-rn
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@virgilsecurity/key-storage-rn

npm Build Status GitHub license

This README is for @virgilsecurity/key-storage-rn v1.0.0. If you are here for the previous version, check out the v0.2.x branch.

This package provides an implementation of IStorageAdapter for React Native and designed to be used in conjunction with virgil-sdk or libraries that use it under the hood(for example E3Kit).

Install

  1. Follow the installation guide for react-native-keychain.

  2. Follow the installation guide for virgil-sdk.

Skip this step if you use E3Kit.

  1. Install the package itself:
yarn add @virgilsecurity/key-storage-rn

Usage

The following code snippet shows how to initialize the KeyEntryStorage with an instance of ReactNativeKeychainStorageAdapter:

import { ReactNativeKeychainStorageAdapter } from '@virgilsecurity/key-storage-rn';
import { KeyEntryStorage } from 'virgil-sdk';

const keyEntryStorage = new KeyEntryStorage({ adapter: new ReactNativeKeychainStorageAdapter() });

License

This library is released under the 3-clause BSD License.

Support

Our developer support team is here to help you.

You can find us on Twitter or send us email support@VirgilSecurity.com.

Also, get extra help from our support team on Slack.

/@virgilsecurity/key-storage-rn/

    Package Sidebar

    Install

    npm i @virgilsecurity/key-storage-rn

    Weekly Downloads

    67

    Version

    1.0.0

    License

    BSD-3-Clause

    Unpacked Size

    23.5 kB

    Total Files

    12

    Last publish

    Collaborators

    • rstp
    • ddain
    • mbalyaba