yubioath-flutter/lib/android/api/flutter_oath_api_impl.dart
2022-03-04 17:07:12 +01:00

23 lines
577 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)
.setFromString(credentialListJson);
}
@override
Future<void> updateSession(String sessionJson) async {
_ref.read(androidStateProvider.notifier).setFromString(sessionJson);
}
}