Remove Trusted Device

You can remove the current device from being a trusted device.

In the future, you can also revoke other trusted devices from any trusted device.

Removing this Trusted Device

To remove the current device from being a trusted device, do the following:

TrustedDeviceHelper.removeDevice(this, new Callback() {
    @Override
    public void onSuccess(JSONObject result) {
        Toast.makeText(getApplicationContext(), result.toString(), Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onError(String error) {
        Toast.makeText(getApplicationContext(), error, Toast.LENGTH_SHORT).show();
    }
});

You cannot remove the last Trusted Device. You will need to have 1 remaining Trusted Device.

Last updated