@virgilsecurity/key-storage-rn
v1.0.0
Published
IStorageAdapter implementation for React Native
Downloads
28
Readme
@virgilsecurity/key-storage-rn
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
Follow the installation guide for react-native-keychain.
Follow the installation guide for virgil-sdk.
Skip this step if you use E3Kit.
- 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 [email protected].
Also, get extra help from our support team on Slack.