mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-25 03:03:50 +03:00
21 lines
539 B
Dart
21 lines
539 B
Dart
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
|
|
import '../oath/command_providers.dart';
|
|
import 'impl.dart';
|
|
|
|
class FOathApiImpl extends FOathApi {
|
|
final StateNotifierProviderRef _ref;
|
|
|
|
FOathApiImpl(this._ref) : super();
|
|
|
|
@override
|
|
Future<void> updateOathCredentials(String credentialListJson) async {
|
|
_ref.read(androidCredentialsProvider.notifier).set(credentialListJson);
|
|
}
|
|
|
|
@override
|
|
Future<void> updateSession(String sessionJson) async {
|
|
_ref.read(androidStateProvider.notifier).set(sessionJson);
|
|
}
|
|
}
|