finds.dev← search

// the find

bizz84/firebase_auth_demo_flutter

★ 673 · Dart · MIT · updated Jan 2021

Reference Authentication Flow with Flutter & Firebase

A Flutter + Firebase reference implementation for authentication flows, covering email/password, Google, Facebook, Apple, and passwordless email link sign-in. Aimed at Flutter developers who want a starting point for auth that goes beyond the official quickstart. Last touched January 2021, so it's running on Flutter circa 1.x/2.0 era packages.

The abstract AuthService interface with a MockAuthService swap is the right call — it means you can test auth logic without Firebase running, and the existing test files actually use it. The separation between sign-in models (ChangeNotifier) and pages is clean; the model handles validation and error state, the page just reacts. Email link (passwordless) is rarely included in reference projects and this one has it with its own doc and sequence diagram. Platform-aware dialogs for iOS/Android is a small but real UX detail most demos skip.

Last pushed January 2021 — Flutter 3.x, Dart 3, and the firebase_auth 4+ null-safety migration have all happened since, and the FlutterFire packages have changed significantly in that time. This almost certainly won't compile against current Flutter without dependency surgery. Account linking is entirely unimplemented (all checkboxes empty), which is a real gap if a user tries Google sign-in after creating an email account. Provider is the DI layer here, but the Flutter ecosystem has largely moved to Riverpod; newcomers copying this will absorb patterns that feel dated. No show/hide password toggle in 2021 was already a UX miss.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →