Moved auth methods to separate module