Made onAuth produce an EssentialAction rather than a Result