Skip to main content
The OrganizationSelection class implements the organization-selection screen functionality. This screen allows users to select an organization to continue with.

Constructors

Create an instance of OrganizationSelection screen manager
Example
import OrganizationSelection from '@auth0/auth0-acul-js/organization-selection';

const organizationSelection = new OrganizationSelection();
await organizationSelection.continueWithOrganizationName({
  organizationName: 'testOrganizationName',
});

Properties

Provides branding-related configurations, such as branding theme and settings.
Provides client-related configurations, such as id, name, and logoUrl, for the organization-selection screen.
Provides information about the user’s organization, such as organization id and name.
Contains data about the current prompt in the authentication flow.
Contains details specific to the organization-selection screen, including its configuration and context.
Contains data related to the tenant, such as id and associated metadata.
Provides transaction-specific data for the organization-selection screen, such as active identifiers and flow states.
Handles untrusted data passed to the SDK, such as user input during the organization selection flow.
Details of the active user, including username, email, and roles.

Methods

continueWithOrganizationName
(options ?)
This method continues with the selected organization name.
Example
import OrganizationSelection from '@auth0/auth0-acul-js/organization-selection';

const organizationSelection = new OrganizationSelection();
await organizationSelection.continueWithOrganizationName({
  organizationName: 'testOrganizationName',
});
options
OPTIONAL
Optional payload.
getErrors
This method retrieves the array of transaction errors from the context, or an empty array if none exist.