Skip to main content

Wallet Integration

This guide covers connecting wallets and authenticating users with the Privacy Boost React SDK.

Basic Authentication

useAuth Return Value

Injected Wallet (MetaMask, etc.)

Custom Wallet Adapter

Complete Example

Error Handling

Best Practices

1. Check Wallet Availability

Always check isWalletAvailable before showing the connect button.

2. Handle Signature Rejection Silently

When users cancel the wallet signature, don’t show an error.

3. Show Connection State

Display the connected wallet address so users can verify which account is active.

Next Steps