logout method
Logout user.
Implementation
@override
Future<bool> logout() async {
if (_isAuthenticated) {
try {
await signOut();
_isAuthenticated = false;
return true;
} catch (e) {
debugPrint("Logout failed: $e");
return false;
}
}
return false;
}