# CredentialsResolver

Learn about the function that resolves the Croct credentials.

This type describes the function the SDK uses to resolve the [Croct credentials](croct-credentials) for a request.

Provide one through the [`credentialsResolver`](/reference/sdk/nuxt/api/configuration#credentialsresolver-prop) option to serve multiple tenants from a single application, each with its own [Croct application](/explanation/application/overview).

## Definition

This type has the following shape:

```ts
type CredentialsResolver = (event: H3Event) => Promise<CroctCredentials | null> | CroctCredentials | null;
```

The function receives the [H3 event](https://h3.unjs.io/guide/event) and returns the [credentials](croct-credentials), or `null` to use the configured values. It may be synchronous or asynchronous.
