signIn method
Future<void>
signIn(
- AuthCredential credential
)
Implementation
Future<void> signIn(AuthCredential credential) async {
_log("Signing In with Credential <${credential.providerId}>");
if ($signedIn && autoLink) {
await linkCredential(credential);
_logSuccess(
"Successfully Signed In & Linked with Credential <${credential.providerId}> with ${$uid}");
await bind($uid!);
return;
}
await FirebaseAuth.instance
.signInWithCredential(credential)
.then(processUserCredential);
_logSuccess(
"Successfully Signed In with Credential <${credential.providerId}> as ${$uid}");
}