Immunity is for life, but you can get infected with COVID-19 if you are vaccinated but treated with anti-CD20 or fingolimod.

previous post