Fix credentials are missing error

This fixes the credentials are missing error by setting the needs_auth value to false if no api key is given