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

# FormFillingClientOptions Type

> authManager and onError settings for new FormFillingClient

These are the settings you pass when you create **`FormFillingClient`** once per page in JavaScript. Create the client after **`SukiAuthManager`**, then reuse the same client for every Form filling session.

```javascript JavaScript theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
const client = new FormFillingClient({
  authManager,
  onError: (err) => console.error(err.code, err.reason, err.message),
});
```

## Properties

**Constructor options**

**authManager** `SukiAuthManager` *required*

Sign-in helper from **`@suki-sdk/core`**. Create once per page and reuse for every session. Refer to [Authentication](https://developer.suki.ai/form-filling-sdk/guides/authentication.md).

**onError** `function`

**Optional.** Called when the SDK reports a configuration or runtime error. Also available as **`form-filling:error`**. Refer to [Error handling](https://developer.suki.ai/form-filling-sdk/guides/error-handling.md) and [Events](https://developer.suki.ai/form-filling-sdk/api-reference/events.md).

## Next steps

&#x20;**[StartOptions](https://developer.suki.ai/form-filling-sdk/api-reference/start-options.md)** - Fields for **`client.start()`**.

&#x20;**[FormFillingProps](https://developer.suki.ai/form-filling-sdk/api-reference/form-filling-props.md)** - React props for **`FormFilling`**.

&#x20;**[Form filling client](https://developer.suki.ai/form-filling-sdk/api-reference/form-filling-client.md)** - Create the client, methods, and React bindings.

&#x20;**[Configuration](https://developer.suki.ai/form-filling-sdk/guides/configuration.md)** - Forms, **`correlation_id`**, and container sizing.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.