Refactor Werewolf Authentication