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

# RedirectLoginOptions

```typescript
interface RedirectLoginOptions extends BaseLoginOptions
```

## Properties

<ResponseField name={"appState"} type={"TAppState"}>
  Used to store state before doing the redirect
</ResponseField>

<ResponseField name={"authorizationParams"} type={"AuthorizationParams"}>
  URL parameters that will be sent back to the Authorization Server. This can be known parameters
  defined by Auth0 or custom parameters that you define.

  Type: [AuthorizationParams](/docs/sdk/typescript/interfaces/AuthorizationParams)
</ResponseField>

<ResponseField name={"fragment"} type={"string"}>
  Used to add to the URL fragment before redirecting
</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
  const client = new Auth0Client({
    async onRedirect(url) {
      window.location.replace(url);
    }
  });
  ```
</ResponseField>

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

  ```ts
  const client = new Auth0Client({
    openUrl(url) {
      window.location.replace(url);
    }
  });
  ```
</ResponseField>
