logout method
Implementation
Future<void> logout() async {
debugPrint('Attempting logout...');
await _auth.signOut();
_userId = null;
_lastLoginTime = null;
_clearAuthData();
notifyListeners();
debugPrint('Logout successful.');
}
Future<void> logout() async {
debugPrint('Attempting logout...');
await _auth.signOut();
_userId = null;
_lastLoginTime = null;
_clearAuthData();
notifyListeners();
debugPrint('Logout successful.');
}