authenticateUser function
- AuthenticationEvent event,
- SignInStateCallback statusCallback
Implementation
Future authenticateUser(
AuthenticationEvent event, SignInStateCallback statusCallback) async {
if (event.type == AuthType.password) {
return _signInWithEmailAndPassword(event, statusCallback);
}
return signInWithSocial(event.provider!, statusCallback);
}