Covid vaccine: How does a vaccine get approved?

The NHS is carrying out the biggest mass vaccination campaign in its history with a jab that protects against Covid-19. What safety checks were made for it to get to this point?