signInWithTrustedDevice

suspend fun signInWithTrustedDevice(id: String? = null, identifierHint: String? = null, promptTitle: String? = null, promptSubtitle: String? = null): ClerkResult<SignIn, ClerkErrorResponse>

Signs in with a locally enrolled trusted-device (biometric) credential.

The trusted-device domain owns local credential selection, key access, challenge signing, and stale local credential cleanup.

Return

A ClerkResult containing the SignIn object on success, or a ClerkErrorResponse on failure.

Example usage:

val signIn = clerk.auth.signInWithTrustedDevice()

Parameters

id

The trusted-device credential ID to use. When omitted, the available local credential is used.

identifierHint

A local-only user identifier hint used to choose a matching credential.

promptTitle

The title shown in the system authentication prompt.

promptSubtitle

The subtitle shown in the system authentication prompt.