Prerequisites
To use Auth0 Universal Components for Web:- You must have an Auth0 account and configure an Auth0 tenant with the My Organization API enabled.
- Register your Auth0 application. If you do not have an Auth0 application, you can get started with the Auth0 React or Next.js Quickstarts.
- For client-side authentication, install React v.16.11+.
- For server-side authentication, install Next.js v.13+.
- React
- Next.js
- shadcn
Install Universal Components
Configure your application
- Wrap your application with
Auth0ProviderandAuth0ComponentProvider:
App.tsx
- Import Universal Components:
OrganizationManagementPage.tsx
Configure Universal Components
TheAuth0ComponentProvider manages authentication, caching, internationalization, and toast notifications for all components.App.tsx
Style components
The stylesheet you imported (
@auth0/universal-components-react/styles)
enables all component styles. If you’re using Tailwind v4, add @import "@auth0/universal-components-react/tailwind" to your CSS file.Example implementations
See complete working examples in the sample applications.Code Examples
React SPA (npm), React SPA (shadcn), and Next.js sample applications with full
implementation patterns
SaaStart Live Demo
See My Organization Components in action in the live reference B2B SaaS app
SaaS Starter Repository
A secure and high-performance starting point for building modern B2B SaaS web applications.
Next steps
Configure Auth0ComponentProvider
Synchronize authentication, internationalization, theming, toast notifications, and caching across all components.
Customize style and themes
Customize the design system using Tailwind CSS, CSS variables, and built-in theme presets.
Build a Delegated Admin Interface
Use the My Organization API to let your customers manage their own Organizations, domains, and SSO providers.