registerNewPasskey
client.registerNewPasskey( authToken, friendlyName, success, failure, activity )
About this command
When authenticated, the user can add a new passkey.
The WebAuthn feature must be enabled on your ReachFive account. |
Examples
client.registerNewPasskey(
authToken = authToken,
friendlyName = "Google Password Manager",
success = { ... }, // Handle success
failure = { error -> ... }, // Handle a ReachFive error
activity = activity,
)
Parameters
The Android activity. |
|||||||||||||||||
Authorization token of the profile retrieved from login.
|
|||||||||||||||||
Callback called once the request has failed. You’ll get a |
|||||||||||||||||
The name associated to the passkey in ReachFive. Default to the name of the Android product. |
|||||||||||||||||
Callback called once the request has succeeded. |
Response
Type: Unit
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.
|