Socket
Socket
Sign inDemoInstall

@portal-hq/keychain

Package Overview
Dependencies
Maintainers
0
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@portal-hq/keychain

The `@portal-hq/keychain` package contains a storage adapter intended for use with the `@portal-hq/core` package.


Version published
Maintainers
0
Created
Source

Portal Keychain

The @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 react-native-keychain.

Basic usage

  1. Install the package in your React Native project.

    yarn add @portal-hq/keychain
    
    # OR #
    
    npm install --save @portal-hq/keychain
    
  2. Import the package into the component where you initialize the Portal class

    import Portal from '@portal-hq/core'
    import Keychain from '@portal-hq/keychain'
    
  3. Register your storage adapter and initialize the Portal class

    const keychain = new Keychain()
    const portal = new Portal({
      // ...your other config options
      keychain,
    })
    

Dependency linking

Because this package uses the react-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 add react-native-keychain

# OR #

npm install --save react-native-keychain

FAQs

Package last updated on 27 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc