How auth0/auth0-flutter works
Project type and purpose
• This is a Flutter plugin SDK (“auth0_flutter”) and its shared platform interface (“auth0_flutter_platform_interface”).
• Purpose: Expose Auth0 authentication & authorization functionality to Flutter apps on Android, iOS, macOS/Darwin, web, Linux, Windows.
File structure
• Top-level packages:
• auth0_flutter/ → Dart API surface & platform‐specific implementations
• auth0_flutter_platform_interface/ → Abstract interfaces & shared data models
• appium-test/, scripts/, .github/, example apps & CI config
• auth0_flutter/lib/src:
• mobile/ → Dart wrappers over MethodChannel calls
• web/ → JS interop implementations & stubs
• Native directories under auth0_flutter/:
• android/ → Kotlin plugin code, MethodCall handlers, API request handlers, CredentialsManager handlers
• ios/, darwin/, macos/ → ObjC/Swift plugin code, method handlers for AuthAPI, CredentialsManager, WebAuth
• Example directory (auth0_flutter/example/) shows a consuming Flutter app with Android, iOS, Linux, macOS, web, Windows targets.
• Platform interface defines the contract; auth0_flutter implements it via MethodChannel or JS proxy.
README for insights
• Describes two packages: the public SDK and its platform interface.
• Targets: Android, iOS, macOS, web Flutter apps.