Transmitting user data over plain HTTP, storing passwords in NSUserDefaults, or logging sensitive info to the console are all flags that will get you rejected under 5.1.1. These are fixable — and fixing them protects your users too.
What Apple said
“Your app transmits user data over an unencrypted connection. Apps that handle sensitive user information must use HTTPS for all network communication. Additionally, sensitive data must not be stored in plaintext on the device. Please update your app to ensure all user data is properly protected.”
Apple requires that any sensitive information — passwords, health data, financial data, personally identifiable information — travels over HTTPS and is stored securely on-device. If your app uses HTTP for any API calls, stores tokens in plaintext, or logs sensitive data, reviewers (and Apple's automated tooling) will catch it. This protects your users and is increasingly table stakes.
While you're at it — Apple also requires these pages for every app.
Fix this rejection, then make sure you're covered on the compliance side too. Apple requires every app to link to a hosted Privacy Policy, Terms of Service, Support page, and Data Deletion page. No link means another rejection — just for a different reason.