Search packages, repositories and app categories

Package detailsv5.1.0

flutter_web_auth_2

Flutter plugin for authenticating a user with a web service.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
620K
Likes
160
Pub points
150

Install package

flutter pub add flutter_web_auth_2

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter plugin designed to simplify web-based authentication by opening a secure browser window for users to log in with external services. It handles the OAuth flow, captures the redirect URL, and returns the result to the app securely. Ideal for integrating third-party login providers like Google, Facebook, or custom OAuth2 services. The plugin supports all major platforms including mobile, web, and desktop. It ensures a seamless user experience while maintaining security through proper URL handling and state management.

Use cases

  • Integrating OAuth2 login flows
  • Connecting to third-party identity providers
  • Enabling single sign-on (SSO) access
  • Handling secure redirects after authentication
  • Supporting web and desktop authentication

Key features

  • Cross-platform support across Android, iOS, Web, macOS, Windows, and Linux
  • Secure handling of redirect URLs and authentication tokens
  • Built-in support for OAuth2 and OpenID Connect
  • Simple API for launching and capturing web auth sessions
  • Automatic URL scheme handling on mobile platforms

Suitable for

  • Developers building apps with external login systems
  • Apps requiring secure web-based authentication
  • Projects targeting multiple platforms with consistent auth behavior

Considerations

  • Requires proper configuration of redirect URIs on the provider side
  • May need additional setup for custom domains or deep linking
  • Not suitable for native app-only authentication without web context
  • Depends on system browser or web view availability

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_web_auth_2/README.md

Categories

Dependencies

Dependency list 6 items

Source repository

Projects using this package