registerWebAuthn

Register credentials with WebAuthn, including prompting the user for biometrics. If successful, returns a webauthn registration result encoded as a base64 string, which is required to complete the registration via your backend.

Parameters

context

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

userName

username for the registering account.

displayName

display name for this registered credential. Default is the username.

callback

operation success/failure callback.


fun registerWebAuthn(context: Context, credentialsCreationOptions: TSWebAuthnRegistrationData, callback: TSAuthCallback<RegistrationResult, TSWebAuthnRegistrationError>)

Register credentials with WebAuthn, including prompting the user for biometrics. If successful, returns a webauthn registration result encoded as a base64 string, which is required to complete the registration via your backend.

Parameters

context

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

credentialsCreationOptions

credentials creation options.

callback

operation success/failure callback.