removeWebAuthnDevice
client.removeWebAuthnDevice(authToken, deviceId, successWithNoContent, failure)
About this command
When authenticated, the user can remove a registered FIDO2 device.
|
Examples
import com.reach5.identity.sdk.core.models.AuthToken
val profileAuthToken: AuthToken = // Here paste the authorization token of the profile retrieved after login
client.removeWebAuthnDevice(
authToken = profileAuthToken,
deviceId = "AcfbMjJcS7vE46R3WHOJL...",
successWithNoContent = { _ -> ... }, // Do something
failure = { error -> ... } // Return a ReachFive error
)
Parameters
Authorization token of the profile retrieved from login.
|
|||||||||||||
The identifier of the device. |
|||||||||||||
Callback called once the request has succeeded. No argument is expected. |
|||||||||||||
Callback called once the request has failed. You’ll get a |
Response
Type: Unit
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.
|