fn is_authentication_failed(err: &Error) -> bool