The Auth0 Universal Components for Android SDK provides pre-built, embeddable UI for Auth0 identity flows using Jetpack Compose. Universal Components for Android are built on top of the Auth0 Android SDK and integrate with My Account APIs.Documentation Index
Fetch the complete documentation index at: https://auth0.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
To configure the Universal Components for Android SDK, you need:- Operating systems: Android 11+ (API 30).
- Programming language: Kotlin 2.2+, Android Gradle Plugin 8.11+, Jetpack Compose BOM 2024.09.00+, JDK 17+.
To enable Auth0 passkey support, you need Android 14+.
Install the SDK
The Universal Components for Android SDK is distributed as thecom.auth0.universalcomponents:universal-components package through the Maven Central repository.
Gradle
Use Gradle to install the SDK:-
Add the
mavenCentral()repository if it is not listed in yoursettings.gradleorsettings.gradle.ktsfile: -
Add the dependency to your module-level
build.gradleorbuild.gradle.kts:
Auth0 recommends using Auth0.Android v3+ in your application. Older versions may cause compilation errors when resolved alongside Universal Components.
Configure Compose
Ensure Compose is enabled in your application’sbuild.gradle file:
Verify the installation
To verify the Universal Components for Android SDK installation, confirm the dependency resolves by running:Sample application
You can review the sample application of the Universal Components for Android SDK on GitHub. The sample application includesMainActivity.kt that initializes the SDK using Auth0UniversalComponents.initialize() and LoginSecurityScreen.kt that renders the AuthenticatorSettingsComponent.
Next steps
Customize style and themes
Override colors, typography, spacing, radius, and size tokens using the Auth0 design-token system.
Build a Self-Service Account Security Interface
Prepare your Auth0 tenant, initialize the SDK, and render the authentication-methods management UI.