> For the complete documentation index, see [llms.txt](https://docs.flutfast.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flutfast.com/services.md).

# Services

## User Service

The `UserService` class provides methods for user authentication and handling user data.

### Methods

#### `authenticateUser({required String username, required String password}) -> Future<UserModel?>`

Authenticates a user based on the provided username and password.

#### `isAuthenticated() -> bool`

Checks if a user is currently authenticated.

#### `getCurrentUser() -> UserModel?`

Retrieves the current authenticated user.

#### `logout() -> void`

Logs out the current user.

#### `updateUserProfile(UserModel newUser) -> void`

Updates the user profile with the provided `UserModel` instance.
