- Create and manage your Auth0 Organization(s)
- Manage user roles and accounts within your Organization
- Manage Single-Sign On with Auth0 or your Social or Enterprise Identity Provider (IdP)
- Customize the login experience with your own branding and themes
- Enable users to review and update their account information. This includes allowing users to choose their authentication and account recovery methods.
How it works
Universal Components acts as the presentation layer between your application and Auth0, coordinating communication between your application, the My Account and My Organization APIs, and Auth0 SDKs. Auth0 SDKs function as the logic, handling authentication flows, token exchange, and session managment. The My Account API provides self-service capabilities for authenticated users to manage their authentication experience. For example, authenticated users can choose their own authentication methods, such as MFA or passkeys. The My Organization API provides a secure, Organization-scoped interface that allows your business customers to manage their own Organizations within your Auth0 tenant. This API serves as the technical backbone for embedded delegated administration and API-first integrations. Universal Components leverages Shadcn components and Tailwind CSS stylesheets to customize components to fit your own branding and themes.Prerequisites
To use Auth0 Universal Components:- You must have an Auth0 account and configure an Auth0 tenant with the My Account and My Organization APIs 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.
- Install Shadcn UI to build the Universal Component library
- Install Tailwinds CSS v.3 to style components for your brand
- 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 Organisation 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.