flutter_robusta_hive_auth 0.1.1+1 copy "flutter_robusta_hive_auth: ^0.1.1+1" to clipboard
flutter_robusta_hive_auth: ^0.1.1+1 copied to clipboard

Integrating Hive features for Robusta auth extension.

example/lib/main.dart

import 'package:flutter_robusta/flutter_robusta.dart';
import 'package:flutter_robusta_auth/flutter_robusta_auth.dart';
import 'package:flutter_robusta_hive/flutter_robusta_hive.dart';
import 'package:flutter_robusta_hive_auth/flutter_robusta_hive_auth.dart';

final runner = Runner(
  extensions: [
    FlutterHiveExtension(),
    FlutterHiveAuthExtension(),
    FlutterAuthExtension(
      identityProvider: (credentials, provider) => throw UnimplementedError(),
      credentialsStorageFactory: (c) => c.read(credentialsHiveStorageProvider),
    )
  ],
);

Future<void> main() => runner.run();