Moved auth client to separate class