


# AuthenticationFirebaseDataSourceImpl&lt;Data> constructor




    *[<Null safety>](https://dart.dev/null-safety)*



AuthenticationFirebaseDataSourceImpl&lt;Data>({[FirebaseAuth](https://pub.dev/documentation/firebase_auth/4.2.0/firebase_auth/FirebaseAuth-class.html)? firebaseAuth, [GoogleSignIn](https://pub.dev/documentation/google_sign_in/5.4.2/google_sign_in/GoogleSignIn-class.html)? googleSignIn})





## Implementation

```dart
AuthenticationFirebaseDataSourceImpl({
  FirebaseAuth? firebaseAuth,
  GoogleSignIn? googleSignIn,
})  : _firebaseAuth = firebaseAuth ?? FirebaseAuth.instance,
      _googleSignIn = googleSignIn ?? GoogleSignIn() {
  _latestCredentials = BehaviorSubject();
  _sessionStream = BehaviorSubject();

  // Check for account in memory (persistence)
  _checkForCachedAccount();
}
```







