fix exports formatting
refactor authentication service