approval Web Authn
fun approvalWebAuthn(context: Context, userName: String?, approvalData: Map<String, String>, callback: TSAuthCallback<TSWebAuthnApprovalResult, TSWebAuthnApprovalError>)
Authenticate the user with WebAuthn biometrics to authorize a specific action. If successful, returns a signed result that must be sent to your backend to complete the approval.
Parameters
context
application context object.
user Name
username of the account to authenticate. Optional — if null, all credentials for this app are offered.
approval Data
key-value data describing the action being approved (e.g. transaction details).
callback
operation success/failure callback.
fun approvalWebAuthn(context: Context, webAuthnAuthenticationData: TSWebAuthnAuthenticationData, callback: TSAuthCallback<TSWebAuthnApprovalResult, TSWebAuthnApprovalError>)
Authenticate the user with WebAuthn biometrics to authorize a specific action, using explicit credential request data. If successful, returns a signed result that must be sent to your backend to complete the approval.
Parameters
context
application context object.
web Authn Authentication Data
credential request data for the approval.
callback
operation success/failure callback.