logout method

Future<void> logout()

Implementation

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