Which web3Auth SDK to use?

I am creating a React Native app for social login with web3Auth, such as below.

I notice there are 4 producs, PnP, MPC Core Kit, Single Factor Auth, Infra SDKs. Is PnP the right choice?

Hi Vic, great question! You’re exploring which Web3Auth SDK to use for a React Native app focused on social login. Here’s a concise breakdown to help you decide:

Web3Auth SDK Options Overview

  1. Plug and Play (PnP) SDK

    • Best for: Fastest integration, out-of-the-box social login, minimal custom logic.
    • How it works: Reconstructs the user’s private key on the device after login (using Shamir Secret Sharing).
    • Docs: PnP React Native SDK
  2. MPC Core Kit SDK

    • Best for: Advanced security (private key is never reconstructed), enterprise use, multi-factor authentication, and custom recovery.
    • How it works: Uses Multi-Party Computation (MPC) and Threshold Signature Scheme (TSS); only signatures are generated, not the private key itself.
    • Docs: MPC Core Kit React Native SDK
    • Note: Requires Enterprise plan, but you can test on the sapphire_devnet.
  3. Single Factor Auth (SFA) SDK

    • Best for: Lightweight, single-factor flows, and custom UI.
    • Docs: SFA SDK
  4. Infra SDKs

    • Best for: Backend or custom infrastructure integrations.

Which Should You Use?

  • For most social login use-cases in React Native, the Plug and Play (PnP) SDK is the recommended and simplest choice.

    • It provides a modal UI and supports all major social login providers.
    • It’s ideal if you want to replicate flows like the one in the YouTube video you shared.
  • If you need advanced security (never reconstructing the private key, multi-factor authentication, or custom recovery flows), consider the MPC Core Kit SDK.

    • This is more complex and typically used by enterprise teams.

Resources


Summary:

  • For a standard social login flow in React Native, go with the Plug and Play (PnP) SDK.
  • If you need enterprise-grade security features, explore the MPC Core Kit SDK.

Let me know if you have specific requirements (like custom UI, MFA, or exportability), and I can help you further narrow down the choice!

Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.

Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. Web3Auth Developer Office Hours

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.