If you know you will be waiting longer than that, you might want to freeze the pasta, then portion it into airtight containers and store in the freezer for up to 6 months.
If you are planning to cook it within 24 hours, you can just store the fresh pasta in an airtight container in the fridge. If you know you will be waiting longer than that, you might want to freeze the pasta, then portion it into airtight containers and store in the freezer for up to 6 months.