withAuthenticationResponseJson

fun withAuthenticationResponseJson(remediation: IdxRemediation, authenticationResponseJson: String): Result<IdxRemediation>

Remediate with the authentication response.

Return

Result<IdxRemediation> with the updated remediation.

Parameters

remediation

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

authenticationResponseJson

JSON string containing the authentication response.

Throws

if the authenticationResponseJson contains invalid .

JSONException

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