serverpod_auth_email_flutter
4.1.2, released 7 days ago by serverpod.dev
Flutter package for email sign‑in with Serverpod authentication.
What it does
Provides UI and helper functions to sign users in with an email address using Serverpod's auth module. It validates email format and communicates with the Serverpod auth client to create or log in users.
AI-written summary of version 4.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Flutter app that uses Serverpod as its backend and need email‑based authentication.
- You need a cross‑platform (Android, iOS, Web) solution that integrates directly with Serverpod's auth API.
Skip it when
- You are not using Serverpod on the server side.
- You only need social or biometric authentication without email support.
Strengths
- Tight integration with Serverpod's auth system
- Works on Android, iOS, and Web
- Built‑in email validation
Weaknesses
- Locks you into Serverpod backend
- Only supports email authentication
- No built‑in social login providers
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 3
Add the package to pubspec, ensure serverpod_auth_client is configured, and initialize ServerpodAuthClient before calling sign‑in methods.
import 'package:serverpod_auth_email_flutter/serverpod_auth_email_flutter.dart';
Future<void> signIn(String email, String password) async {
final result = await ServerpodAuthEmailFlutter.signIn(email: email, password: password);
// handle result
}Alternatives
Packages that do the same job and could replace serverpod_auth_email_flutter.
- firebase_auth
Provides similar email/password authentication for apps that use Firebase instead of Serverpod.
99Compare
Works with
Packages commonly used together with serverpod_auth_email_flutter: ones it builds on, ones built on it, and its own family.
- email_validatorserverpod_auth_email_flutter depends on itA simple Dart class for validating email addresses without using RegEx.
- serverpod_auth_clientserverpod_auth_email_flutter depends on itClient authentication library for Serverpod backends.
- serverpod_auth_shared_flutterserverpod_auth_email_flutter depends on itShared Flutter widgets for Serverpod authentication, including passwordless OTP and social logins.
- serverpod_clientSame familyBase classes for communicating with a Serverpod backend via HTTP and WebSocket
- serverpodSame familyServerpod is the ultimate app-stack for agentic coding. It is a complete, open-source solution for your app, backend, website, and database, all using Flutter and Dart.
- serverpod_flutterSame familyFlutter specific utilities for Serverpod.
- serverpod_service_clientSame familyGenerated client for the Serverpod service protocol.
- serverpod_cliSame familyCommand line tools for Serverpod.