loginWithPasskey
About this command
A user with an already registered credential can authenticate with a passkey.
The WebAuthn feature must be enabled on your ReachFive account. |
Examples
client.loginWithPasskey(
loginRequest = WebAuthnLoginRequest.EmailWebAuthnLoginRequest(
email = "john.doe@example.com"
),
origin = "passkey login from Android app",
success = { authToken -> ... }, // Get the profile's authentication token
failure = { error -> ... }, // Handle a ReachFive error
activity = activity,
)
client.loginWithPasskey(
loginRequest = WebAuthnLoginRequest.PhoneNumberWebAuthnLoginRequest(
phoneNumber = "+33682234940",
),
origin = "passkey 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 |
|
The parameters required to login with a registered FIDO2 device. The
|
|
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. |
|
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.
|