logout method
- BuildContext context
Log out the currently logged in user.
Returns true if the logout was successful, false if it was not.
Implementation
@override
Future<bool> logout(
BuildContext context,
) async {
try {
await auth.signOut();
return true;
} on FirebaseAuthException catch (_) {
return false;
}
}