listWebAuthnCredentials
AppDelegate.reachfive().listWebAuthnCredentials(authToken)
Examples
AppDelegate
.reachfive()
.listWebAuthnCredentials(authToken: profileAuthToken)
.onSuccess { listCredentials in
// Get the list of devices
}
.onFailure { error in
// Return a ReachFive error
}
Parameters
Parameter | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Authorization token of the profile retrieved from login.
|
Response
Type: Future<[DeviceCredential], ReachFiveError>
DeviceCredential
The details of a device credential.
friendlyName |
The name that is displayed by the system when presenting the passkey for login. |
id |
The identifier of the credential. |
ReachFiveError
Based on the problem, the ReachFiveError
will be:
-
AuthCanceled
: The user cancelled the request or no credential was available in the keychain. -
RequestError(apiError: ApiError)
for a Bad Request (status 400) error. -
AuthFailure(reason: String, apiError: ApiError?)
mainly for Unauthorized (status 401) error. -
TechnicalError(reason: String, apiError: ApiError?)
if it’s an Internal Server Error (status 500) or other internal errors.
ApiError
error |
The main error message. |
||||||
errorId |
The identifier of the error. |
||||||
errorUserMsg |
The user-friendly error message.
|
||||||
errorMessageKey |
The error message key. |
||||||
errorDescription |
The technical error message. |
||||||
errorDetails FieldError[] |
|