@portal-hq/keychain package contains a storage adapter intended for use with the @portal-hq/core package. This storage adapter allows end users to save MPC shares to their local device keychain using the iOS Keychain.
Basic usage
Adding Face ID support on iOS:Add the following tags to your
info.plist file if it does not already exist:Install the package in your React Native project.
- yarn
- npm
Import the package into the component where you initialize the Portal class
Register your storage adapter and initialize the Portal class
Dependency linking
Because this package uses thereact-native-keychain package (which contains native modules) there is some additional linking required to make it work with your React Native project.
Explicitly install the react-native-keychain package in your project.
- yarn
- npm