Move auth to using go-curl