Skip to main content

Documentation Index

Fetch the complete documentation index at: https://auth0.com/llms.txt

Use this file to discover all available pages before exploring further.

The RedeemTicket class implements the redeem-ticket screen functionality. This screen is displayed when a user needs to redeem a ticket to continue with the authentication flow.

Constructors

Create an instance of RedeemTicket screen manager:
Example
import RedeemTicket from '@auth0/auth0-acul-js/redeem-ticket';
const redeemTicketManager = new RedeemTicket();
await redeemTicketManager.continue();

Properties

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

Methods

changeLanguage
Promise<void>
This method changes the display language of the Universal Login page.
Example
import RedeemTicket from '@auth0/auth0-acul-js/redeem-ticket';
const redeemTicketManager = new RedeemTicket();
redeemTicketManager.changeLanguage({
  language: 'fr',
});
Method Parameters

continue
Promise<void>
This method performs the default action on the redeem-ticket screen, continuing the authentication flow.
Example
import RedeemTicket from '@auth0/auth0-acul-js/redeem-ticket';
const redeemTicketManager = new RedeemTicket();
await redeemTicketManager.continue();
Method Parameters

getErrors
This method retrieves the array of transaction errors from the context, or an empty array if none exist.