Allow the user to authenticate using cookie/session auth when in debug mode to make it easier to test endpoints.