Super Simple Authentication
Install
Section titled “Install”Import super_simple_authentication_blocsync_authentication_provider
flutter pub add super_simple_authentication_blocsync_authentication_provider
Configure
Section titled “Configure”Configure Blocsync with Firebase Auth
import 'package:blocsync/blocsync.dart';import 'package:firebase_auth/firebase_auth.dart';import 'package:super_simple_authentication_blocsync_authentication_provider/super_simple_authentication_blocsync_authentication_provider.dart';
void main() async { WidgetsFlutterBinding.ensureInitialized();
// Setup Firebase final superSimpleAuthentication = SuperSimpleAuthentication( baseUrl: 'https://your-server.com', basePath: '/authentication', );
// Configure Blocsync with Super Simple Authentication BlocSyncConfig.authProvider = SuperSimpleAuthenticationBlocsyncAuthenticationProvider( authenticationClient: superSimpleAuthentication, );
runApp(MyApp());}