AuthServiceImpl constructor
AuthServiceImpl({})
Implementation
AuthServiceImpl({
required FirebaseApp firebaseApp,
required this.useFirebaseFCM,
this.onAuthenticated,
this.onRefreshed,
this.onLoggedOut,
}) {
// This can be disabled for hardcoding
logd('Instantiated AuthServiceImpl');
_fbAuth = fb_auth.FirebaseAuth.instanceFor(app: firebaseApp);
_fbAuth.authStateChanges().listen(handleAuthStateChanges);
_fbAuth.idTokenChanges().listen((event) => handleTokenChanges(event));
// For debuggin
if (AppConfigBase.signoutOnReload) {
// _fbAuth.signOut();
signOut();
}
}