> ## 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.

# RedirectConnectAccountOptions

## Properties

<ResponseField name={"appState"} type={"TAppState"}>
  Optional application state to persist through the transaction.

  ```ts
  await auth0.connectAccountWithRedirect({
    connection: 'google-oauth2',
    appState: { returnTo: '/settings' }
  });
  ```
</ResponseField>

<ResponseField name={"authorization_params"} type={"AuthorizationParams"}>
  Additional authorization parameters for the request.

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

  ```ts
  await auth0.connectAccountWithRedirect({
    connection: 'github',
    authorization_params: {
      audience: 'https://api.github.com'
    }
  });
  ```
</ResponseField>

<ResponseField name={"connection"} type={"string"} required>
  The name of the connection to link (e.g. 'google-oauth2').
</ResponseField>

<ResponseField name={"openUrl"} type={"(url: string) => Promise<void>"}>
  Optional function to handle the redirect URL.

  ```ts
  await auth0.connectAccountWithRedirect({
    connection: 'google-oauth2',
    openUrl: async (url) => { myBrowserApi.open(url); }
  });
  ```
</ResponseField>

<ResponseField name={"redirectUri"} type={"string"}>
  The URI to redirect back to after connecting the account.
</ResponseField>

<ResponseField name={"scopes"} type={"string[]"}>
  Array of scopes to request from the Identity Provider during the connect account flow.

  ```ts
  await auth0.connectAccountWithRedirect({
    connection: 'google-oauth2',
    scopes: ['https://www.googleapis.com/auth/calendar']
  });
  ```
</ResponseField>
