feat: introducing 31 new react sdk samples #58
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: acul samples with @auth0/auth0-acul-js sdk and @auth0/auth0-acul-react usage
Overview
This PR introduces a major architectural transformation, converting the repository from a single-template structure to a comprehensive monorepo containing production-ready Auth0 Advanced Customizations for Universal Login (ACUL) samples. This change significantly expands the repository's scope from 3 basic login screens to 31 fully-implemented authentication flows across two distinct SDK implementations.
Change Summary
react-js/: 3 screens using@auth0/auth0-acul-js(production-ready)react/: 31 screens using@auth0/auth0-acul-react(comprehensive coverage)Architecture & Design
Monorepo Structure
This conversion establishes a scalable foundation for multiple ACUL implementations:
auth0-acul-samples/
├── react-js/ # JS SDK implementation (3 screens)
├── react/ # React SDK implementation (31 screens)
├── manifest.json # Central deployment manifest
└── scripts/ # Shared tooling and validation
Why Monorepo?
Auth0 CLI Integration
Manifest-Driven Deployment
The new
manifest.jsonserves as the single source of truth for Auth0 CLI integration, enabling automated deployment of ACUL screens.Key Features:
react/,react-js/)Deployment Workflow:
npm run build)ul-context-inspector Integration
Offline Development
One of the most impactful additions is the integration of
@auth0/ul-context-inspector, a development tool that eliminates the need for Auth0 tenant connections during local development.What It Solves:
Features:
Implementation:
DevScreenManager.tsx: Wraps screens with context inspector in developmentProdScreenManager.tsx: Production-mode router (no inspector overhead)public/universal-login-context-*.json: Context schemas and mock dataThis dramatically reduces development friction—developers can build and test screens without Auth0 tenant access.
SDK Coverage
React-JS Sample (JS SDK)
SDK:
@auth0/auth0-acul-jsParadigm: Imperative API (manual state management)
Screens:
login- Universal login with social providerslogin-id- Identifier-first flowlogin-password- Password entry screenUse Cases: Maximum control over state, suitable for complex custom flows
React Sample (React SDK)
SDK:
@auth0/auth0-acul-reactParadigm: React hooks (declarative, state managed by SDK)
Key Improvements
For Developers
For Operations
For Product Teams
🔧 Technical Highlights
Build System
Component Architecture
Quality Assurance
Documentation
Each sample includes comprehensive documentation: