debut auth refacto
auth refacto