Skip to main content
The EmailVerificationResult class implements the email-verification-result screen functionality. This screen displays the result of an email verification attempt.

Constructors

Create an instance of EmailVerificationResult screen manager
Example
import EmailVerificationResult from '@auth0/auth0-acul-js/email-verification-result';

const emailVerificationResultScreen = new EmailVerificationResult();

// Access screen data
const status = emailVerificationResultScreen.screen.data?.status;
const loginLink = emailVerificationResultScreen.screen.loginLink;

console.log(`Verification Status: ${status}`);
if (loginLink) {
  console.log(`Proceed to login: ${loginLink}`);
  // In a UI, you would use this link for a button or anchor tag
  // e.g., <a href={loginLink}>Go to Login</a>
}

Properties

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

Methods

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