fix(auth): add initial null account event in stream in the mock authentication

This commit is contained in:
Hugo Pointcheval 2022-11-16 15:46:07 -05:00
parent 54002beaab
commit f05f2230e9
Signed by: hugo
GPG Key ID: A9E8E9615379254F

View File

@ -23,7 +23,8 @@ import 'package:wyatt_type_utils/wyatt_type_utils.dart';
class AuthenticationMockDataSourceImpl extends AuthenticationRemoteDataSource { class AuthenticationMockDataSourceImpl extends AuthenticationRemoteDataSource {
Pair<Account, String>? _connectedMock; Pair<Account, String>? _connectedMock;
Pair<Account, String>? _registeredMock; Pair<Account, String>? _registeredMock;
final StreamController<Account?> _streamAccount = StreamController(); final StreamController<Account?> _streamAccount = StreamController()
..add(null);
final List<Pair<Account, String>>? registeredAccounts; final List<Pair<Account, String>>? registeredAccounts;
final String idToken; final String idToken;