🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@0xshield3/privy

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xshield3/privy

Shield3 RPC configuration for Privy

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
2
Created
Source

@0xshield3/privy

@0xshield3/privy is a configuration package for the Privy @privy-io/react-auth library that enables Shield3 RPC integration. It simplifies the setup process for connecting to the Shield3 API by providing a convenient configuration function.

Installation

To install @0xshield3/privy, use your preferred package manager:

npm install @0xshield3/privy
yarn add @0xshield3/privy
pnpm add @0xshield3/privy

Usage

To use @0xshield3/privy, you need to import and call the initShield3PrivyConfig function with your Shield3 API key and optional Privy configuration.

import initShield3PrivyConfig from '@0xshield3/privy';

const privyProviderConfig = {
    // Your Privy configuration options (optional)
};

const shield3PrivyConfig = initShield3PrivyConfig(<YOUR_SHIELD3_API_KEY>, privyProviderConfig);

return (
    <PrivyProvider config={shield3PrivyConfig}>
        <Component {...pageProps} />
    </PrivyProvider>
    );

Parameters

  • SHIELD3_API_KEY (string): Your Shield3 API key, which is required for authentication.

  • privyClientConfig (PrivyClientConfig type): An optional configuration object for Privy. This object allows you to customize the behavior of the Privy client. Refer to the Privy documentation for available configuration options.

License

This package is licensed under the MIT License. See the LICENSE file for details.

Keywords

react

FAQs

Package last updated on 21 Feb 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