Skip to main content

Documentation Index

Fetch the complete documentation index at: https://auth0.com/llms.txt

Use this file to discover all available pages before exploring further.

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.

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 the com.auth0.universalcomponents:universal-components package through the Maven Central repository.

Gradle

Use Gradle to install the SDK:
  1. Add the mavenCentral() repository if it is not listed in your settings.gradle or settings.gradle.kts file:
    dependencyResolutionManagement {
        repositories {
            mavenCentral()
            google()
        }
    }
    
  2. Add the dependency to your module-level build.gradle or build.gradle.kts:
    dependencies {
        implementation("com.auth0.universalcomponents:universal-components:1.0.0-beta.0")
    }
    
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’s build.gradle file:
android {
    buildFeatures {
        compose = true
    }
}

Verify the installation

To verify the Universal Components for Android SDK installation, confirm the dependency resolves by running:
./gradlew app:dependencies | grep universal-components

Sample application

You can review the sample application of the Universal Components for Android SDK on GitHub. The sample application includes MainActivity.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.