AuthenticationRepository constructor
AuthenticationRepository({
- CacheClient? cache,
- FirebaseAuth? firebaseAuth,
- GoogleSignIn? googleSignIn,
- FacebookAuth? facebookAuth,
Repository which manages user authentication.
Implementation
AuthenticationRepository({
CacheClient? cache,
FirebaseAuth? firebaseAuth,
GoogleSignIn? googleSignIn,
FacebookAuth? facebookAuth,
}) : _cache = cache ?? CacheClient(),
_firebaseAuth = firebaseAuth ?? FirebaseAuth.instance,
_googleSignIn = googleSignIn ?? GoogleSignIn.standard(),
_facebookAuth = facebookAuth ?? FacebookAuth.instance;