privy_flutter
0.11.0, released 8 weeks ago by privy.io
Flutter plugin for Privy authentication and embedded wallets on iOS and Android
What it does
Provides phone, email, passkey, OAuth, SIWE/SIWS login, and non‑custodial Ethereum/Solana wallet creation and transaction signing. It also manages session restoration and MFA.
AI-written summary of version 0.11.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need multi‑factor authentication with phone or email OTP
- You want to embed a non‑custodial wallet in your Flutter app
- You need OAuth login with Google, Apple, Twitter, or Discord
Skip it when
- You only need simple email/password auth
- You are building a web‑only app without native SDKs
Strengths
- Native SDK integration for fast auth and wallet ops
- Supports multiple auth methods and MFA
- Handles session restoration and network changes
Weaknesses
- Requires native platform setup (App ID, URL schemes)
- Limited to iOS 17+ and Android API 27+
- No code generation or declarative UI components
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 2
Add privy_flutter to pubspec, configure App ID and Client ID in Privy dashboard, set URL schemes in Info.plist and AndroidManifest.xml, call Privy(config) in Dart
import 'package:privy_flutter/privy_flutter.dart';
final privy = Privy(config: PrivyConfig(appId: "YOUR_APP_ID", appClientId: "YOUR_CLIENT_ID"));
await privy.getAuthState();Alternatives
Packages that do the same job and could replace privy_flutter.
- google_sign_in
Provides Google OAuth only, simpler for single provider
84Compare - local_auth
Offers biometric auth without external service
90Compare - firebase_auth
Full auth suite with email/password, phone, OAuth, and backend
99Compare
Works with
Packages commonly used together with privy_flutter: ones it builds on, ones built on it, and its own family.