fixed loading spinner bug and added authConfig example back

fixed issue #145