1. Install dependencies
@lens-protocol/react@canary
to access the latest Lens features.2. Set up providers
LensProvider
to use the Lens SDK across your app.3. Connect a wallet with Privy
login
to prompt the user to connect a wallet. With Privy, you can automatically create wallets for users who don’t have one (for example, when signing in with Google or another social method). With this new wallet, you can onboard the user to your Lens‑powered app and keep the onboarding experience seamless.4. Fetch accounts for the connected wallet
Switching wallets (if the user has more than one wallet)
5. Implement login with Lens
6. Render accounts and trigger login
7. Check authentication status
useAuthenticatedUser
to check whether the user is authenticated with a Lens account.