fixed loading spinner bug and added authConfig example back