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

# `AuthKitProvider`

Wrap your application in an `AuthKitProvider` to use Farcaster Auth. This provider component stores configuration information about your app and makes it available to auth-kit components and hooks.

**Note:** You must create an `AuthKitProvider` to use Farcaster Connect. Don't forget to create one at the top level of your application.

```tsx theme={"system"}
const config = {
  domain: 'example.com',
  siweUri: 'https://example.com/login',
  rpcUrl: process.env.OP_MAINNET_RPC_URL,
  relay: 'https://relay.farcaster.xyz',
};

const App = () => {
  return (
    <AuthKitProvider config={config}>{/*   Your App   */}</AuthKitProvider>
  );
};
```

## Props

| Prop | Type | Required | Description |
| - | - | - | - |
| `config` | `AuthKitConfig` | No | Configuration object. See the options in the table below. |

`config` object options:

| Parameter | Type | Required | Description | Default |
| - | - | - | - | - |
| `domain` | `string` | No | The domain of your application. | `window.location.host` |
| `siweUri` | `string` | No | The login URL of your application. | `window.location.href` |
| `relay` | `string` | No | Farcaster Auth relay server URL | `https://relay.farcaster.xyz` |
| `rpcUrl` | `string` | No | Optimism RPC server URL | `https://mainnet.optimism.io` |
| `version` | `string` | No | Farcaster Auth version | `v1` |


## Related topics

- [`SignInButton`](https://docs.neynar.com/farcaster/auth-kit/sign-in-button.md)
- [AuthKit](https://docs.neynar.com/farcaster/auth-kit/index.md)
- [Overview](https://docs.neynar.com/farcaster/auth-kit/service-providers.md)
- [Installation](https://docs.neynar.com/farcaster/auth-kit/installation.md)
- [Auth client](https://docs.neynar.com/farcaster/auth-kit/client/introduction.md)


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