Fixes a bug with authentication

The auth (function) was being replaced by the auth (string), so the second
time through, it would try to call the string.