This allows the use of a form when posting to /api/auth/login instead of just basic auth. It also allows users to authenticate and get an API key when there's no username/password set. This is mainly used when Medusa is first installed.
/api/auth/login