listWebAuthnDevices
About this command
When authenticated, the user can list the registered FIDO2 devices.
|
Examples
import com.reach5.identity.sdk.core.models.AuthToken
val authToken: AuthToken = // The authentication token obtained following signup or login.
client.listWebAuthnDevices(
authToken = authToken,
success = { devices -> ... }, // Get the list of devices
failure = { error -> ... } // Handle a ReachFive error
)
Parameters
Authorization token of the profile retrieved from login.
|
|||||||||||||
Callback called once the fetch has succeeded. You’ll get the list of |
|||||||||||||
Callback called once the request has failed. You’ll get a |
Response
Type: Unit
DeviceCredential
The details of a device credential.
friendlyName |
The name of the FIDO2 device. |
id |
The identifier of the FIDO2 device. |
ReachFiveError
message |
The message of the error. |
|||||||||||||||||||||||||||||||||||||||
getErrorCode() |
The error code’s enumeration value. |
|||||||||||||||||||||||||||||||||||||||
code |
The code from the underlying WebAuthn library.
|
|||||||||||||||||||||||||||||||||||||||
exception |
The stack trace of the error. |
|||||||||||||||||||||||||||||||||||||||
data |
Additional data about the error.
|