mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-30 09:47:43 +03:00
17 lines
551 B
Dart
Executable File
17 lines
551 B
Dart
Executable File
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
|
|
import '../app/models.dart';
|
|
import '../core/state.dart';
|
|
import 'models.dart';
|
|
|
|
final fidoStateProvider = StateNotifierProvider.autoDispose
|
|
.family<FidoStateNotifier, ApplicationStateResult<FidoState>, DevicePath>(
|
|
(ref, devicePath) => throw UnimplementedError(),
|
|
);
|
|
|
|
abstract class FidoStateNotifier extends ApplicationStateNotifier<FidoState> {
|
|
Stream<InteractionEvent> reset();
|
|
Future<PinResult> unlock(String pin);
|
|
Future<PinResult> setPin(String newPin, {String? oldPin});
|
|
}
|