withRegistrationResponse

fun withRegistrationResponse(remediation: IdxRemediation, registrationResponseJson: String): Result<IdxRemediation>

Remediate with the registration response.

Return

Result<IdxRemediation> with the updated remediation.

Parameters

remediation

The remediation to update with the registration response. Must have a WebAuthn registration capability.

registrationResponseJson

JSON string containing the registration response.

Throws

if required fields are missing in the registrationResponseJson or IdxRemediation.Form

JSONException

if the JSON string is invalid. Or if the registrationResponseJson does not contain the expected fields.