authenticate Native Biometrics
fun authenticateNativeBiometrics(context: FragmentActivity, username: String, challenge: String, promptTexts: BiometricPromptTexts, callback: TSAuthCallback<TSBiometricsAuthResult, TSBiometricsAuthError>)
Authenticate a user by prompting for biometrics and signing the provided challenge. On success, returns a signed challenge that must be sent to your backend to complete authentication.
Parameters
context
FragmentActivity context required to display the biometric prompt.
username
username of the account to authenticate.
challenge
server-provided challenge to sign with the biometric key.
prompt Texts
title, subtitle, and negative button text to display on the biometric prompt.
callback
operation success/failure callback.