- React
- React Native
- Android
- Swift
Privy supports whitelabeling user management for linking and unlinking accounts.
Linking a social account
Linking a social account
Linking a wallet
Linking a wallet
To whitelabel linking wallets, use the
useLinkWithSiwe hook for Ethereum wallets or useLinkWithSiws hook for Solana wallets. These hooks allow you to generate messages, request signatures, and link wallets without using Privy’s modal UI.- Ethereum (SIWE)
- Solana (SIWS)
To link an Ethereum wallet to a user via SIWE, use the React SDK’s Alternatively, you can request a signature from any external wallet or smart account:
useLinkWithSiwe hook.Generate SIWE message
Sign the SIWE message
Request an EIP-191personal_sign signature for the message returned by generateSiweMessage from the wallet.Link with SIWE
Usage
Callbacks
You can optionally pass callbacks intouseLinkWithSiwe:Unlinking an account
Unlinking an account
To whitelabel unlinking an account, use the
usePrivy hook and call unlink<Provider>.
