Email Verification Result screen class

The Email Verification Result screen class provides methods associated with the email-verification-result screen.

Import and instantiate the Email Verification Result screen class:

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>
}

Was this helpful?

/

Properties

The Email Verification Result screen class properties are:

interface branding {
  settings: null | BrandingSettings;
  themes: null | BrandingThemes;
}

interface BrandingSettings {
  colors?: {
    pageBackground?: string | {
      angleDeg: number;
      end: string;
      start: string;
      type: string;
    };
    primary?: string;
  };
  faviconUrl?: string;
  font?: {url: string;};
  logoUrl?: string;
}

interface BrandingThemes {
  default: {
    borders: Record<string, string | number | boolean>;
    colors: Record<string, string>;
    displayName: string;
    fonts: Record<string, string | boolean | object>;
    pageBackground: Record<string, string>;
    widget: Record<string, string | number>;
  };
}

Was this helpful?

/