listWebAuthnDevices
About this command
When authenticated, the user can list the registred FIDO2 devices.
|
Examples
import com.reach5.identity.sdk.core.models.AuthToken
val profileAuthToken: AuthToken = // Here paste the authorization token of the profile retrieved after login
client.listWebAuthnDevices(
authToken = profileAuthToken,
success = { devices -> ... }, // Get the list of devices
failure = { error -> ... } // Return 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. |
|||||||||||||||||||||||||||||||||||||||
code |
The code from the underlying WebAuthn library.
|
|||||||||||||||||||||||||||||||||||||||
exception |
The stack trace of the error. |
|||||||||||||||||||||||||||||||||||||||
data |
Additional data about the error.
|