Skip to main content

Android

Official

Native Kotlin SDK with hosted login and secure token storage.

API reference

Every export is fully typed. The signatures and props below come from the package's own reference documentation, so what is listed here is what the installed version ships.

Components
Functions
componentSignIn

The

SignIn composable renders a full app-native sign-in form. It drives the Flow Execution API loop automatically: initiating the flow, presenting the server-defined inputs and actions on each step, and completing when the user is authenticated. SignIn requires ThunderIDProvider in its ancestor composable hierarchy.

Parameters
applicationIdrequired
String

The Application ID from your ThunderID application settings. Identifies which sign-in flow to execute.

modifieroptional
Modifier

Compose modifier applied to the form container.

onCompleteoptional
(() -> Unit)?

Called when authentication completes successfully.

onErroroptional
((String) -> Unit)?

Called with an error message when a flow step fails.

Example
import dev.thunderid.compose.components.presentation.auth.SignIn

@Composable
fun AuthView(applicationId: String) {
    SignIn(
        applicationId = applicationId,
        modifier = Modifier.fillMaxWidth().padding(16.dp)
    )
}

Get started

Provider, session, and a protected route, start to finish.

Connect your application

Getting started / Connect your application / Android

Open in docs

The quickstart is maintained alongside the rest of the getting-started guides so it stays in step with the platform. This page covers the package itself.

Guides

Task-focused walkthroughs maintained alongside the SDK.

Accessing Protected APIs

Make authenticated API requests from an Android application using OkHttp with automatic bearer token injection.

3 min read

Try the Android Sample App

Run the ThunderID Android sample app to see the full authentication lifecycle end to end.

3 min read
ThunderID LogoThunderID Logo

Product

DocsAPIsSDKs
© Copyright Linux Foundation Europe.For web site terms of use, trademark policy and other project policies please see https://linuxfoundation.eu/en/policies.