discoverableLogin
About this command
Use this method to discover a credential to log in a user. This can be via password, passkey, or both.
The WebAuthn feature must be enabled on your ReachFive account. |
Examples
client.discoverableLogin(
origin = "discoverable login from Android app",
success = { authToken -> ... }, // Get the profile's authentication token
failure = { error -> ... }, // Handle a ReachFive error
activity = activity,
)
Parameters
The Android activity. |
|
Callback called once the request has failed. You’ll get a |
|
Free text parameter describing the source of the login (only for reporting purposes). |
|
List of space-delimited, case-sensitive strings representing the requested scope. Default scopes are the allowed scopes set up in the client’s configuration. |
|
Set the type of credentials to request. Pass like
|
|
Callback called once the request has succeeded. Takes |
Response
This method returns Unit
. The login result will be obtained through the onLoginActivityResult method.
ReachFiveError
message |
The message of the error. |
||||||||||||||
getErrorCode() |
The error code’s enumeration value. |
||||||||||||||
code |
The HTTP status code or SDK error code. |
||||||||||||||
exception |
The stack trace of the error. |
||||||||||||||
data |
Additional data about the error.
|