app_auth_manager 1.0.6
app_auth_manager: ^1.0.6 copied to clipboard
A comprehensive Flutter app auth manager package that provides authentication support.
example/lib/main.dart
import 'package:app_auth_manager/app_auth_manager.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'auth_example_app.dart';
import 'firebase_options.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
// Create and initialize the auth manager using the factory constructor
// This ensures proper initialization without needing to call initialize()
// separately
final IAuthManager authManager = await FirebaseAuthManager.create();
authManager.enableDebugLogging(true);
runApp(AuthExampleApp(authManager: authManager));
}