authenticateWebAuthn

Authenticate the user using WebAuthn credentials. If the username is not provided, all the credentials for this app in this device will be displayed. This will prompt the user for biometrics. If successful, it returns a webauthn authentication result encoded as a base64 string, which is required to complete the authentication via your backend.

Parameters

context

Use an activity-based context to avoid undefined system/UI launching behavior

userName

username for the authenticating account. Optional.

callback

operation success/failure callback.


fun authenticateWebAuthn(context: Context, webAuthnAuthenticationData: TSWebAuthnAuthenticationData, callback: TSAuthCallback<AuthenticationResult, TSWebAuthnAuthenticationError>)

Authenticate the user using WebAuthn credentials. If the username is not provided, all the credentials for this app in this device will be displayed. This will prompt the user for biometrics. If successful, it returns a webauthn authentication result encoded as a base64 string, which is required to complete the authentication via your backend.

Parameters

context

Use an activity-based context to avoid undefined system/UI launching behavior

webAuthnAuthenticationData

webAuthn credentials request data.

callback

operation success/failure callback.