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

# LogoutOptions

```typescript
interface LogoutOptions extends LogoutUrlOptions
```

## Properties

<ResponseField name={"clientId"} type={"null | string"}>
  The `clientId` of your application.

  If this property is not set, then the `clientId` that was used during initialization of the SDK is sent to the logout endpoint.

  If this property is set to `null`, then no client ID value is sent to the logout endpoint.

  [Read more about how redirecting after logout works](https://auth0.com/docs/logout/guides/redirect-users-after-logout)
</ResponseField>

<ResponseField name={"logoutParams"} type={"{ federated: boolean; returnTo: string }"}>
  Parameters to pass to the logout endpoint. This can be known parameters defined by Auth0 or custom parameters
  you wish to provide.
</ResponseField>

<ResponseField name={"onRedirect"} type={"(url: string) => Promise<void>"}>
  Used to control the redirect and not rely on the SDK to do the actual redirect.

  <Warning>Deprecated: since v2.0.1, use `openUrl` instead.</Warning>

  ```ts
  await auth0.logout({
    async onRedirect(url) {
      window.location.replace(url);
    }
  });
  ```
</ResponseField>

<ResponseField name={"openUrl"} type={"false | (url: string) => void | Promise<void>"}>
  Used to control the redirect and not rely on the SDK to do the actual redirect.

  Set to `false` to disable the redirect, or provide a function to handle the actual redirect yourself.

  ```ts
  await auth0.logout({
    openUrl(url) {
      window.location.replace(url);
    }
  });
  ```
</ResponseField>
