This project provides a production-ready template for creating custom Auth0 Advanced Customizations for Universal Login (ACUL) screens using React, TypeScript, and Tailwind CSS. The template follows the same design language and user experience patterns as Auth0's Universal Login screens while integrating with the Auth0 ACUL SDK to provide seamless authentication functionality.
What is ACUL? Advanced Customizations for Universal Login (ACUL) is an Early Access capability that allows you to build custom, client-rendered versions of Universal Login screens, giving you control over every pixel of your authentication experience. ACUL uses a client/server model where you have full control over the client-side interface while leveraging the security, extensibility, and flexibility of Universal Login's hosted authentication on the server side.
⚠️ Important Notes
- Early Access Feature: ACUL is currently in Early Access (EA) and not yet Generally Available (GA)
- Enterprise Feature: Requires Enterprise Auth0 plan and verified custom domain
- Work in Progress: This template repository is actively being developed
- Quick Start
- Prerequisites
- Screens
- Build Structure
- Deployment
- Contributing
- Documentation
- Troubleshooting
Get started with local development in under 2 minutes:
# Clone and setup
git clone https://github.com/auth0-samples/auth0-acul-samples.git
cd auth0-acul-samples
npm install
# Start developing with mock data
npm run screen login-id # Opens http://localhost:3000
Perfect for exploring the codebase, building new screens, or customizing existing ones without any Auth0 setup required.
For Local Development:
- Node.js version 22+ (
node -v
to check)
For Production Use:
- Auth0 tenant with verified custom domain
- Enterprise Auth0 plan (for ACUL access)
Open Source Contributors: You can explore and contribute to this codebase using mock data without needing an Auth0 Enterprise plan.
Need to install Node.js?
We recommend using NVM (Node Version Manager):
- macOS/Linux:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
- Windows: Install nvm-windows
nvm install 22
nvm use 22
Once you're ready to test with actual Auth0 authentication:
# Build and serve assets locally
npm run build
npx serve dist -p 8080 --cors
# Install Auth0 CLI and configure (Enterprise tenants only)
npm install -g @auth0/auth0-cli
auth0 login
# Configure ACUL with settings file
auth0 ul customize --rendering-mode advanced --prompt login-id --screen login-id --settings-file ./settings.json
About settings.json: This file contains the same ACUL payload configuration as shown in the Build Structure section. It defines how Auth0 should load your custom screen assets, including CSS files, JavaScript bundles, and context configuration. The settings.json file structure is identical to the payload you'd use when configuring ACUL programmatically.
⚠️ Use development/testing tenants only
The main screen implementations are located in src/screens/
, with each screen designed to integrate with the Auth0 ACUL SDK.
Vite compiles each screen as a separate entry point for optimized loading:
# Build optimized assets
npm run build
# Serve locally for testing
npx serve dist -p 8080 --cors
Output Structure:
dist/
├── index.html # Main entry point
└── assets/
├── main.[hash].js # Main application bundle
├── shared/
│ ├── style.[hash].css # Global styles
│ ├── common.[hash].js # Shared utilities
│ └── vendor.[hash].js # Dependencies
└── [screen-name]/
└── index.[hash].js # Screen-specific code
Screen-specific bundles can be deployed independently for incremental rollouts.
ACUL Payload Configuration Example (settings.json)
When configuring Auth0 ACUL for a specific screen, your settings.json file will reference the built assets:
{
"rendering_mode": "advanced",
"context_configuration": [
"branding.settings",
"branding.themes.default",
"screen.texts"
],
"default_head_tags_disabled": false,
"head_tags": [
{
"tag": "base",
"attributes": {
"href": "https://your-cdn-domain.com/"
}
},
{
"tag": "meta",
"attributes": {
"name": "viewport",
"content": "width=device-width, initial-scale=1"
}
},
{
"tag": "link",
"attributes": {
"rel": "stylesheet",
"href": "https://your-cdn-domain.com/assets/shared/style.[hash].css"
}
},
{
"tag": "script",
"attributes": {
"src": "https://your-cdn-domain.com/assets/main.[hash].js",
"type": "module"
}
},
{
"tag": "script",
"attributes": {
"src": "https://your-cdn-domain.com/assets/shared/common.[hash].js",
"type": "module"
}
},
{
"tag": "script",
"attributes": {
"src": "https://your-cdn-domain.com/assets/shared/vendor.[hash].js",
"type": "module"
}
},
{
"tag": "script",
"attributes": {
"src": "https://your-cdn-domain.com/assets/login-id/index.[hash].js",
"type": "module"
}
}
]
}
Reference these built assets in your Auth0 ACUL configuration.
This repository includes GitHub Actions workflows for automated deployment. See DEPLOYMENT.md for complete setup instructions.
Enabling Screens for Deployment
Control which screens are deployed by modifying .github/config/deploy_config.yml
:
default_screen_deployment_status:
"login-id": true # Enable for deployment
"signup": false # Disable for deployment
We welcome contributions! Here's how you can help:
Getting Started:
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature-name
- Make your changes using mock data for testing
- Test thoroughly:
npm run test
- Submit a pull request
What to Contribute:
- Bug fixes and improvements
- Documentation updates
- Test coverage improvements
- Component enhancements
Development Guidelines:
- Follow the existing code patterns in
src/screens/
- Use TypeScript for type safety
- Follow the Auth0 design system principles
- Include tests for new functionality
- Auth0 ACUL Documentation - Official ACUL guide
- ACUL API Documentation - SDK classes and methods
- DEPLOYMENT.md - Deployment setup instructions
Screen not loading or showing blank page
Symptoms: Browser shows blank page or loading spinner Solutions:
- Check browser console for JavaScript errors
- Verify screen name matches directory in
src/screens/
- Ensure all dependencies installed:
npm install
- Try clearing browser cache and restarting dev server
Mock data not displaying correctly
Symptoms: Forms show empty fields or default values Solutions:
- Check if mock data file exists in
src/mock-data/
- Verify mock data structure matches screen requirements
- Check network tab for failed API calls to mock endpoints
- Bug Reports: Create an issue with reproduction steps
- Community Discussion: Auth0 Community Forum
- Documentation: Auth0 ACUL Docs
- Feature Requests: Open a discussion