Refactor authentication service methods