BiometricCredentials
The main entry point for biometric credential operations.
Access via Clerk.biometricCredentials.
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.biometricCredentials.enroll()
// Later, sign in with biometrics
Clerk.biometricCredentials.signIn().onSuccess { signIn ->
// Session created
}Properties
Functions
Returns local biometric sign-in availability.
Returns biometric sign-in availability for the current signed-in user, reconciling the local credential with the server.
Returns local biometric sign-in availability for the current signed-in user without reconciling with the server.
Enrolls the current app installation as a biometric credential.
Deletes local biometric credentials and keys belonging to deletedUserId.
Deletes account-scoped local credentials, retaining failed cleanup work for the next SDK initialization.
Lists active biometric credentials for the signed-in user.
Returns local biometric sign-in availability without reconciling with the server.
Revokes a biometric credential for the signed-in user.
Revokes the available local biometric credential for the current signed-in user, if one exists.
Signs in with a locally enrolled biometric credential.
Validates the local biometric credential against the server when possible.