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

# AcceptInvitation

> Describes all the properties and methods available to customize the Universal Login `accept-invitation` screen.

The AcceptInvitation class implements the `accept-invitation` screen functionality. This screen is displayed when a user needs to accept an invitation to join an organization.

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/wYcZudKzAy7DVE3d/docs/images/cdy7uua7fh8z/7E8WhBDFF6oBEE6YdGH5Of/ba6c56b47cfca43ce7a798e2c5d5a094/Screenshot_2025-03-25_at_19.58.39.png?fit=max&auto=format&n=wYcZudKzAy7DVE3d&q=85&s=d97872717de91308485b1fb400e3f1d1" alt="" width="371" height="492" data-path="docs/images/cdy7uua7fh8z/7E8WhBDFF6oBEE6YdGH5Of/ba6c56b47cfca43ce7a798e2c5d5a094/Screenshot_2025-03-25_at_19.58.39.png" />
</Frame>

## Constructors

Create an instance of AcceptInvitation screen manager:

```typescript Example theme={null}
import AcceptInvitation from '@auth0/auth0-acul-js/accept-invitation';
const acceptInvitationManager = new AcceptInvitation();
await acceptInvitationManager.acceptInvitation();
```

## Properties

<ParamField body="branding" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers">BrandingMembers</a></span>}>
  Provides branding-related configurations, such as branding theme and settings.
</ParamField>

<ParamField body="client" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/ClientMembers">ClientMembers</a></span>}>
  Provides client-related configurations, such as `id`, `name`, and `logoUrl`, for the `accept-invitation` screen.
</ParamField>

<ParamField body="organization" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers">OrganizationMembers</a></span>}>
  Provides information about the user's Organization, such as `id` and `name`.
</ParamField>

<ParamField body="prompt" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/PromptMembers">PromptMembers</a></span>}>
  Contains data about the current prompt in the authentication flow.
</ParamField>

<ParamField body="screen" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnAcceptInvitation">ScreenMembersOnAcceptInvitation</a></span>}>
  Contains details specific to the `accept-invitation` screen, including its configuration and context.
</ParamField>

<ParamField body="tenant" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/TenantMembers">TenantMembers</a></span>}>
  Contains data related to the tenant, such as `id` and associated metadata.
</ParamField>

<ParamField body="transaction" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/TransactionMembers">TransactionMembers</a></span>}>
  Provides transaction-specific data for the `accept-invitation` screen, such as active identifiers and flow states.
</ParamField>

<ParamField body="untrustedData" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembers">UntrustedDataMembers</a></span>}>
  Handles untrusted data passed to the SDK, such as user input during the invitation acceptance flow.
</ParamField>

<ParamField body="user" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/UserMembers">UserMembers</a></span>}>
  Details of the active user, including `username`, `email`, and `roles`.
</ParamField>

## Methods

<ParamField body="acceptInvitation" type="Promise<void>">
  This method accepts the invitation and adds the user to the organization.

  ```typescript Example theme={null}
  import AcceptInvitation from '@auth0/auth0-acul-js/accept-invitation';
  const acceptInvitationManager = new AcceptInvitation();
  await acceptInvitationManager.acceptInvitation();
  ```
</ParamField>

<ParamField body="changeLanguage" type="Promise<void>">
  This method changes the display language of the Universal Login page.

  ```typescript Example theme={null}
  import AcceptInvitation from '@auth0/auth0-acul-js/accept-invitation';
  const acceptInvitationManager = new AcceptInvitation();
  acceptInvitationManager.changeLanguage({
    language: 'fr',
  });
  ```

  **Method Parameters**

  <Expandable title="Parameters">
    <ParamField body="options">
      [LanguageChangeOptions](/docs/libraries/acul/js-sdk/Screens/interfaces/LanguageChangeOptions).
    </ParamField>

    <ParamField body="language" type="string" required>
      The locale code for the desired language (for example, `'en'`, `'fr'`, `'es'`).
    </ParamField>

    <ParamField body="persist?" type="&#x22;session&#x22;">
      When set to `'session'`, the selected language persists for the duration of the session.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="getErrors" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/Error">Error</a>[]</span>}>
  This method retrieves the array of transaction errors from the context, or an empty array if none exist.
</ParamField>
