Why two doses of the new COVID-19 vaccines are better than one

One dose can be effective, but for how long?