# createAuthenticatedBatch

**Kind:** Function

**Source:** [`atloria-monorepo/apps/screenshot-worker/test/helpers/batch-builder.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/screenshot-worker/test/helpers/batch-builder.ts#L323)

Helper function to create an authenticated batch request

## Signature

```ts
function createAuthenticatedBatch(urls: string[], auth: {
    loginUrl: string;
    username: string;
    password: string;
    usernameSelector?: string;
    passwordSelector?: string;
    submitSelector?: string;
  }, options: {
    projectId?: string;
    organizationId?: string;
  }): TakeBatchScreenshotsDto
```

## Parameters

| Name | Type |
|---|---|
| `urls` | `string[]` |
| `auth` | `{
    loginUrl: string;
    username: string;
    password: string;
    usernameSelector?: string;
    passwordSelector?: string;
    submitSelector?: string;
  }` |
| `options` | `{
    projectId?: string;
    organizationId?: string;
  }` |

**Returns:** `TakeBatchScreenshotsDto`
