approvalWebAuthn

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.

userName

username of the account to authenticate. Optional — if null, all credentials for this app are offered.

approvalData

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.

webAuthnAuthenticationData

credential request data for the approval.

callback

operation success/failure callback.