Developers using Auth0's Universal Login can use this React SDK to customize screens like login, signup, or reset password. It provides hooks, context, and utilities to build flexible, type-safe experiences that match your brand and deliver a seamless user experience.
π Documentation
Quickstart - our guide for setting up the SDK on your app.
Examples - code snippets for different customization use cases.
π Getting started
Prerequisites
Before starting, ensure that you have the following setup:
Custom Domain: Ensure that a custom domain is configured for your Auth0 tenant.
Screen Configuration: Set up the required authentication screens within your Auth0 flow.
For detailed steps, refer to the Configure ACUL Screens.
Installation
npm install @auth0/auth0-acul-react
Peer dependency:
npm install react
Importing the SDK
The SDK supports partial imports for each screen, allowing you to include only the code you need for your specific use case. This helps keep your bundle size small and improves performance.
Also, you can use a root import to load all screens from a single bundle if your app requires it.
Partial Imports
Each screen has its own set of hooks and methods. You can import only what you need for the screen you're building.
The following example shows how to import and use SDK to build login-id screen.
The SDK also supports a root import, which lets you load all screens from a single bundle.
This is useful if your app dynamically renders different screens at runtime based on the current Auth0 flow, for example, when you want one unified build that can handle all possible screens.
However, root imports arenβt ideal for most projects since they can increase bundle size.
If you only need specific screens, use partial imports instead for better performance.
import {
// Common hooks
useCurrentScreen,
useAuth0Themes,
useErrors,
// Screen-specific hooks for multiple screens
useLoginId,
useSignupId,
useResetPassword
} from'@auth0/auth0-acul-react';
Types / Interfaces
Typescript types and interfaces can be imported from @auth0/auth0-acul-react/types for type safety and better DX.
Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.
Auth0 is an easy to implement, adaptable authentication and authorization platform. To learn more checkout Why Auth0?
This project is licensed under the MIT license. See the LICENSE file for more info.
FAQs
The Auth0 ACUL React SDK enables you to build Advanced Customization for Universal Login with React hooks and components.
The npm package @auth0/auth0-acul-react receives a total of 3,796 weekly downloads. As such, @auth0/auth0-acul-react popularity was classified as popular.
We found that @auth0/auth0-acul-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 30 open source maintainers collaborating on the project.
Package last updated on 09 Dec 2025
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.