TSAuthentication

object TSAuthentication

TS Authentication user API

Functions

Link copied to clipboard
fun authenticateWebAuthn(    context: Context,     userName: String? = "",     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.

Link copied to clipboard
fun getDeviceInfo(context: Context, callback: TSAuthCallback<DeviceInfo, TSDeviceInfoError>)

Sign transaction.

Link copied to clipboard
fun initialize(context: Context, clientID: String)
fun initialize(    context: Context,     clientID: String,     baseUrl: String = "https://api.transmitsecurity.io/")

Initialize the SDK with your client context,

Link copied to clipboard
fun isWebAuthnSupported(): Boolean
Link copied to clipboard
fun registerWebAuthn(    context: Context,     userName: String,     displayName: String?,     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.

Link copied to clipboard
fun signTransactionWebAuthn(    context: Context,     userName: String?,     callback: TSAuthCallback<AuthenticationResult, TSWebAuthnAuthenticationError>)

Sign transaction.