Before you start
You need:
- An Auth0 development tenant configured with Universal Login and a custom domain.
- An Auth0 First Party Application.
- Enable Identifier First Authentication in your Auth0 tenant.
- Node.js V22+
- The Auth0 CLI Tool authenticated to your existing tenant.
- To review the ACUL Quickstart guide
login-passwordless-email-code screen. In this example, replace the default OTP input with Shadcn’s InputOTP component.
- Use the Auth0 CLI tool to create an ACUL project.
login-passwordless-email-code screen
- Run the ACUL local development server to edit and view your screen updates.
- Initialize Shadcn in the root of your project:
-
Follow the CLI prompts to create the
components.jsonfile to hold the configuration for your project and asrc/lib/utils.tsfile. -
Add the component files to
src/components/ui/input-otp.tsx:
- Integrate the component:
a. Navigate to
src/screens/login-passwordless-email-code/components/IdentifierForm.tsxand 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.
- Run the screen locally with the ACUL Context Inspector to see your new component:
- Connect your local dev environment to your test tenant to try the new screen in a live authentication flow:
- Follow the prompts to build your local assets, start the local dev server, and update the ACUL configuration on your tenant.
- Test the passwordless authentication flow: