loginStart

abstract fun loginStart(activity: FragmentActivity): Single<LoginComplete>

Starts the login flow. This will open the biometric or web login screen and return a LoginComplete object when the user has successfully logged in.

If the user terminates the web login flow by closing the external webview, the subscriber will not be notified, so when doing the subscription, any previous login subscription must be disposed, to prevent multiple emissions.

Throws

if the user cancels the biometric prompt

if the biometric login flow encounters an unrecoverable error and authentication has stopped, contains a message with the error

if the biometric login fails or get rejected with specific user message from the server. The DsError object contains the error details.

HttpException

if the network request fails

if the network request times out (in case of no or slow network)