Across Europe, right-wing populist parties are gaining ground by exploiting voters’ concerns about migration and access to the welfare state. It is time for the EU to introduce a single social-security identifier that enables governments to track workers and ensures that welfare benefits are portable across national borders.