They had teeth. Birds don’t have teeth.
That why the phrase, “As rare as hen’s teeth.”
From the article:
We now know of more than 130 pterosaur species sporting all manner of bizarre jaws and teeth (or no teeth at all, in several lineages),