amplify_auth_cognito
2.16.0, released 5 weeks ago by aws-amplify.com
Amplify Flutter Auth plugin for AWS Cognito
What it does
Provides authentication features for Flutter apps using AWS Cognito. Supports sign‑in, sign‑up, MFA, passwordless login, and hosted UI. Works across Android, iOS, Web, Windows, macOS, and Linux.
AI-written summary of version 2.16.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need Cognito as backend for authentication
- Want a single plugin that handles all auth flows
- Targeting multiple platforms with a unified API
Skip it when
- Using a different backend like Firebase or Supabase
- Needing fine‑grained control over low‑level auth APIs
- Working in a pure Dart/CLI environment without Flutter
Strengths
- Cross‑platform support
- Built by AWS, tightly integrated with Cognito
- Regular updates and bug fixes
- Supports advanced flows like passwordless and OIDC
Weaknesses
- Requires AWS account and Cognito setup
- Plugin size and dependencies may be heavy
- Limited to Cognito, not generic OAuth
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 10
Add amplify_auth_cognito to pubspec, run flutter pub get, configure Amplify in main.dart, add platform‑specific setup (Android: add internet permission, iOS: add URL schemes). No build_runner needed.
Alternatives
Packages that do the same job and could replace amplify_auth_cognito.
- firebase_auth_web
Web implementation of Firebase Authentication for Flutter
85Compare - firebase_auth
Flutter plugin for Firebase Authentication enabling passwords, phone numbers, and identity providers.
99Compare - firebase_ui_auth
Pre-built Firebase Auth UI widgets for Flutter
91Compare - amazon_cognito_identity_dart_2
Unofficial Amazon Cognito Identity Provider SDK for Dart and Flutter apps.
74Compare
Works with
Packages commonly used together with amplify_auth_cognito: ones it builds on, ones built on it, and its own family.
- asyncamplify_auth_cognito depends on itUtility classes and helpers that extend Dart's async library.
- plugin_platform_interfaceamplify_auth_cognito depends on itReusable base class for platform interfaces of Flutter federated plugins.
- amplify_coreamplify_auth_cognito depends on itBase package containing common types and utilities for AWS Amplify Flutter packages.
- amplify_flutteramplify_auth_cognito depends on itFlutter SDK for AWS Amplify services like Auth, API, Storage, and Analytics.
- amplify_analytics_pinpointamplify_auth_cognito depends on itAWS Pinpoint analytics plugin for Flutter
- amplify_apiSame familyAmplify Flutter API plugin supporting GraphQL and REST operations.
- amplify_api_dartSame familyDart-only Amplify API plugin for GraphQL and REST.
- amplify_storage_s3Same familyAWS S3 storage plugin for Flutter via Amplify