TSAuthentication
TS Authentication user API
Functions
Link copied to clipboard
fun authenticateWebAuthn( context: Context, userName: String? = "", callback: TSAuthCallback<AuthenticationResult, TSWebAuthnAuthenticationError>)
Content copied to clipboard
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>)
Content copied to clipboard
Sign transaction.
Link copied to clipboard
fun initialize( context: Context, clientID: String, baseUrl: String = "https://api.transmitsecurity.io/")
Content copied to clipboard
Initialize the SDK with your client context,
Link copied to clipboard
Link copied to clipboard
fun registerWebAuthn( context: Context, userName: String, displayName: String?, callback: TSAuthCallback<RegistrationResult, TSWebAuthnRegistrationError>)
Content copied to clipboard
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>)
Content copied to clipboard
Sign transaction.