> ## Documentation Index
> Fetch the complete documentation index at: https://committ.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Auth Client

> Better Auth client configuration and session management.

# Auth Client

The Auth Client (lib/auth-client.ts) configures the Better Auth client for session management and OAuth flows.

***

## Configuration

```typescript theme={null}
import { createAuthClient } from "@better-auth/expo";

export const authClient = createAuthClient({
  baseURL: env.EXPO_PUBLIC_AUTH_URL,
});
```

***

## Usage

The authClient provides hooks consumed throughout the app:

* authClient.useSession() -- Returns the current session data and loading state
* authClient.signOut() -- Clears the session and redirects to sign-in
* authClient.signIn.social() -- Initiates Google OAuth flow

The session user ID is used to set assigner\_id and assignee\_id on the task draft when creating new commitments.
