EmbeddedSdk

Functions

Link copied to clipboard
fun authenticate(url: String, passkeyId: String, callback: (Result<AuthenticateResponse>) -> Unit)
fun authenticate(url: String, passkeyId: String, dispatcher: CoroutineDispatcher = Dispatchers.Default): <Error class: unknown class>

Authenticate a user.

Link copied to clipboard
fun authenticateOtp(url: String, email: String, dispatcher: CoroutineDispatcher = Dispatchers.Default): <Error class: unknown class>

Initiates authentication using an OTP, which will be sent to the provided email address.

Link copied to clipboard
fun bindPasskey(url: String, dispatcher: CoroutineDispatcher = Dispatchers.Default): <Error class: unknown class>

Bind a passkey to this device.

Link copied to clipboard
fun deletePasskey(id: String, callback: (Result<Unit>) -> Unit)
fun deletePasskey(id: String, dispatcher: CoroutineDispatcher = Dispatchers.Default): <Error class: unknown class>

Delete a Passkey by ID on current device.

Link copied to clipboard
fun getAuthenticationContext(url: String, dispatcher: CoroutineDispatcher = Dispatchers.Default): <Error class: unknown class>

Returns the Authentication Context for the current transaction.

Link copied to clipboard
fun getPasskeys(dispatcher: CoroutineDispatcher = Dispatchers.Default): <Error class: unknown class>

Get all current passkeys for this device.

Link copied to clipboard
fun init(app: Application, biometricAskPrompt: String = app.getString(R.string.embedded_export_biometric_prompt_title), logger: (String) -> Unit, allowedDomains: List<String>? = null)

Initialize and configure the Beyond Identity Embedded SDK.

Link copied to clipboard
fun isAuthenticateUrl(url: String, dispatcher: CoroutineDispatcher = Dispatchers.IO): Flow<Boolean>

Returns whether a URL is a valid Authenticate URL or not.

Link copied to clipboard
fun isBindPasskeyUrl(url: String, dispatcher: CoroutineDispatcher = Dispatchers.IO): Flow<Boolean>

Returns whether a URL is a valid Bind Passkey URL or not.

Link copied to clipboard
fun redeemOtp(url: String, otp: String, callback: (Result<RedeemOtpResponse>) -> Unit)
fun redeemOtp(url: String, otp: String, dispatcher: CoroutineDispatcher = Dispatchers.Default): <Error class: unknown class>

Redeems an OTP for a grant code.

Link copied to clipboard

Set the current activity for biometric prompt support.