Remove unused noauth flag
Separate authentication from fetching

And simplify some code.