Skip to content
pubscout

amplify_auth_cognito

2.16.0, released 5 weeks ago by aws-amplify.com

Amplify Flutter Auth plugin for AWS Cognito

WASM-readyRock solid
$ flutter pub add amplify_auth_cognito
Source repository

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.

Works with

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