yubioath-flutter/lib/android/api/flutter_oath_api_impl.dart
2022-03-04 16:51:56 +01:00

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);
}
}