TrustedDevices
The main entry point for trusted-device (biometric sign-in) credential operations.
Access via Clerk.trustedDevices.
Enrolling generates a biometric-gated private key in the Android Keystore and registers its public key with Clerk. Signing in signs a server challenge with that key after the user passes the system biometric prompt. The private key never leaves the device.
Example usage:
// Enroll the current device while signed in
Clerk.trustedDevices.enroll()
// Later, sign in with biometrics
Clerk.trustedDevices.signIn().onSuccess { signIn ->
// Session created
}Properties
Functions
Returns local trusted-device sign-in availability.
Returns trusted-device sign-in availability for the current signed-in user, reconciling the local credential with the server.
Returns local trusted-device sign-in availability for the current signed-in user without reconciling with the server.
Enrolls the current app installation as a biometric trusted device.
Deletes local trusted-device credentials and keys belonging to deletedUserId.
Deletes account-scoped local credentials, retaining failed cleanup work for the next SDK initialization.
Lists active trusted-device credentials for the signed-in user.
Returns local trusted-device sign-in availability without reconciling with the server.
Revokes a trusted-device credential for the signed-in user.
Revokes the available local trusted-device credential for the current signed-in user, if one exists.
Signs in with a locally enrolled biometric trusted-device credential.
Validates the local trusted-device credential against the server when possible.