onFailure

fun onFailure(handleFailure: suspend ApplicationCall.(String) -> Unit)

Handle CSRF error conditions. By default, a 400 response is returned with a string response containing the error. As with any security-related error, it is advised to log the problem and return some generic response.

Parameters

handleFailure

handler for CSRF error conditions