error

fun error(key: Any, cause: AuthenticationFailedCause)

Appends an error to the errors list. Overwrites if already registered for the same key.