API reference
Full referenceSignInThe
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.applicationIdrequiredStringThe Application ID from your ThunderID application settings. Identifies which sign-in flow to execute.
modifieroptionalModifierCompose 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.
organizationUnitIdoptionalString?Bounds the sign-in to this organization unit. The SDK sends it as `ouId` on the request that starts the flow. When the flow completes, its session replaces the previous one.
import dev.thunderid.compose.components.presentation.auth.SignIn@Composablefun 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
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.