error

fun error(key: Any, cause: AuthenticationFailedCause): Unit

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