firebase_auth_rest
2.1.7, released 11 days ago by skycoder42.de
Pure Dart wrapper for Firebase Authentication REST API, works on all Dart platforms.
WASM-ready
What it does
Provides high‑level classes to sign up, sign in, manage users and refresh tokens via Firebase's REST endpoints. Also exposes low‑level REST classes for direct API calls.
AI-written summary of version 2.1.7, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need Firebase Auth without native SDKs or platform channels
- You target platforms where the official firebase_auth plugin isn’t supported (e.g., pure Dart, server, or web without JS)
- You want to run authentication against the Firebase emulator
Skip it when
- You already use the official firebase_auth plugin with native SDKs
- You need deep integration with Google Sign‑In or Apple Sign‑In that rely on platform SDKs
Strengths
- Works on all Dart platforms including server and CLI
- No native code or platform‑specific setup required
- Supports parallel logins and automatic token refresh
Weaknesses
- Limited to REST features; no real‑time token revocation handling
- Less mature than the official firebase_auth plugin
- Relies on manual handling of API keys and security rules
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 3
final fbAuth = FirebaseAuth(Client(), "API-KEY");
final account = await fbAuth.signUpAnonymous();
print('Local-ID: ${account.localId}');
await account.delete();
account.dispose();Alternatives
Packages that do the same job and could replace firebase_auth_rest.
- firebase_auth
Official plugin with native SDK support, richer feature set, and tighter integration with Firebase services
99Compare
Works with
Packages commonly used together with firebase_auth_rest: ones it builds on, ones built on it, and its own family.