Skip to content
pubscout

serverpod_auth_email_flutter

4.1.2, released 7 days ago by serverpod.dev

Flutter package for email sign‑in with Serverpod authentication.

$ flutter pub add serverpod_auth_email_flutter
Source repository

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.

Works with

Packages commonly used together with serverpod_auth_email_flutter: ones it builds on, ones built on it, and its own family.