Unlinking accounts from users
Developers can use Privy to prompt users to unlink their linked accounts (such as a wallet or Discord profile) at any point in their user journey. This might be useful whenever the user has either created a new external account (such as a new Twitter profile or email address) and want to remove the old linked account from their user.
The React SDK supports unlinking all supported account types via our modal-guided link methods.
To prompt a user to unlink an account, use the respective method from the usePrivy
hook:
Method | Description |
---|---|
unlinkEmail | unlinks email address |
unlinkPhone | unlinks phone number |
unlinkWallet | unlinks external wallet |
unlinkGoogle | unlinks Google account |
unlinkApple | unlinks Apple account |
unlinkTwitter | unlinks Twitter account |
unlinkDiscord | unlinks Discord account |
unlinkGithub | unlinks Github account |
unlinklinkedIn | unlinks LinkedIn account |
unlinkTikTok | unlinks TikTok account |
unlinkSpotify | unlinks Spotify account |
unlinkInstagram | unlinks Instagram account |
unlinkTelegram | unlinks Telegram account |
unlinkFarcaster | unlinks Farcaster account |
unlinkPasskey | unlinks passkey |
Users are only permitted to unlink an account so long as they have at least one more linked account.
Below is an example button for prompting a user to unlink certain linked accounts:
Was this page helpful?