Privy
Last updated
Last updated
is a simple toolkit for progressive authentication in web3. With a single library, you can easily onboard both expert users and newcomers alike, through Privy's powerful wallet connectors and delightful embedded wallets.
Privy makes it easy to integrate every major wallet into your app without having to wrangle the connectors individually. You can .
Privy comes pre-packaged with Phantom so you can support your Phantom users right out of the box. Here’s how.
Building a new app? Check out these starter templates for integrating Privy into:
If you're starting from scratch, we recommend using one of these templates to integrate Privy:
your appId
an optional onSuccess
callback which will execute once a user successfully logs in
usePrivy
! 🎉From here, you can easily use Privy to:
The Privy React Auth SDK allows you to authenticate your users with Privy in your React app in minutes. You can .
a NextJS project (, )
a Create React App project (, )
Request access to Privy and get keys in minutes. at
Install the using npm
:
Once you have your app ID, in your React project, wrap your components with a . The should wrap any component that will use the Privy SDK.
a NextJS project (, )
a Create React App project (, )
For example, in a or project, you may wrap your components like so:
The takes the following properties:
an optional config
property to to match your app
You can now use the Privy SDK throughout your app via the hook with Phantom working right out of the box.
See Privy run live in a and check out the for more reference.
and explore how your users are connecting to your app.
.
, as part of progressive onboarding.
.
Manage your user base with and .
.