Skip to main content

Before you start

You need:
With ACUL, you can use your choice of component libraries to customize your Universal Login prompt screens. The following examples uses Shadcn, a library of reusable components and the Auth0 login-passwordless-email-code screen. In this example, replace the default OTP input with Shadcn’s InputOTP component.
  1. Use the Auth0 CLI tool to create an ACUL project.
Select the login-passwordless-email-code screen
  1. Run the ACUL local development server to edit and view your screen updates.
  1. Initialize Shadcn in the root of your project:
  1. Follow the CLI prompts to create the components.json file to hold the configuration for your project and a src/lib/utils.ts file.
  2. Add the component files to src/components/ui/input-otp.tsx:
  1. Integrate the component: a. Navigate to src/screens/login-passwordless-email-code/components/IdentifierForm.tsx and open the file. b. Import the InputOTP components and replace the existing input field. You also need to manage the state of the OTP code and use the correct SDK hook.
  1. Run the screen locally with the ACUL Context Inspector to see your new component:
  1. Connect your local dev environment to your test tenant to try the new screen in a live authentication flow:
  1. Follow the prompts to build your local assets, start the local dev server, and update the ACUL configuration on your tenant.
  2. Test the passwordless authentication flow: