Interface: PrivyProviderProps
Properties to initialize the PrivyProvider.
Properties
appId
• appId: string
Your Privy App ID, which can be retrieved from the Privy console.
config
• Optional
config: PrivyClientConfig
Client configuration options. Values here will override their server-configuration counterparts.
createPrivyWalletOnLogin
• Optional
createPrivyWalletOnLogin: boolean
If true, the user will be prompted to create a Privy wallet after successfully logging in, if they do not currently have any wallet associated with their user object.
onSuccess
• Optional
onSuccess: (user
: User
, isNewUser
: boolean
) => void
Type declaration
▸ (user
, isNewUser
): void
An optional callback that will execute once a login
call successfully completes.
Within this callback, you can access:
- the
user
object corresponding to the authenticated user - an
isNewUser
boolean flag indicating if this is the user's first time logging in to your app
Parameters
Name | Type |
---|---|
user | User |
isNewUser | boolean |
Returns
void