Skip to main content
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.

Constructors

Create an instance of AcceptInvitation screen manager
Example
import AcceptInvitation from '@auth0/auth0-acul-js/accept-invitation';

const acceptInvitation = new AcceptInvitation();
await acceptInvitation.acceptInvitation();

Properties

Provides branding-related configurations, such as branding theme and settings.
Provides client-related configurations, such as id, name, and logoUrl, for the accept-invitation 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 accept-invitation screen, including its configuration and context.
Contains data related to the tenant, such as id and associated metadata.
Provides transaction-specific data for the accept-invitation screen, such as active identifiers and flow states.
Handles untrusted data passed to the SDK, such as user input during the invitation acceptance flow.
Details of the active user, including username, email, and roles.

Methods

acceptInvitation
(options ?)
This method accepts the invitation and adds the user to the organization.
Example
import AcceptInvitation from '@auth0/auth0-acul-js/accept-invitation';

const acceptInvitation = new AcceptInvitation();
await acceptInvitation.acceptInvitation();
options
OPTIONAL
Optional payload.
getErrors
This method retrieves the array of transaction errors from the context, or an empty array if none exist.