Embedded Sdk
object EmbeddedSdk
Functions
Link copied to clipboard
fun authenticate(url: String, passkeyId: String, dispatcher: CoroutineDispatcher = Dispatchers.Default): Flow<Result<AuthenticateResponse>>
Authenticate a user.
Link copied to clipboard
fun authenticateOtp(url: String, email: String, dispatcher: CoroutineDispatcher = Dispatchers.Default): Flow<Result<OtpChallengeResponse>>
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): Flow<Result<BindPasskeyResponse>>
Bind a passkey to this device.
Link copied to clipboard
Link copied to clipboard
fun getAuthenticationContext(url: String, dispatcher: CoroutineDispatcher = Dispatchers.Default): Flow<Result<AuthenticationContext>>
Returns the Authentication Context for the current transaction.
Link copied to clipboard
Get all current passkeys for this device.
Link copied to clipboard
fun init(app: Application, keyguardPrompt: ((allow: Boolean, Exception?) -> Unit) -> Unit?, logger: (String) -> Unit, biometricAskPrompt: String = app.getString(R.string.embedded_export_biometric_prompt_title), allowedDomains: List<String>? = null)
Initialize and configure the Beyond Identity Embedded SDK.
Link copied to clipboard
Returns whether a URL is a valid Authenticate URL or not.
Link copied to clipboard
Returns whether a URL is a valid Bind Passkey URL or not.