Refactor auth logic into separate module