listWebAuthnDevices
About this command
When authenticated, the user can list the registered devices and/or passkeys.
|
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. |
||
createdAt |
The date and time when the passkey was created. |
||
lastUsedAt |
The date and time when the passkey was last used. |
||
aaguid |
The Authenticator Attestation Globally Unique Identifier, a unique number that identifies the model of the authenticator.
|
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.
|