Toilets in Paris

I will be downloading the app to find toilets in Paris but I’m curious if I will be allowed to use toilets when purchasing croissant or even the bakery has toilets that we can use.

I asked because in Rome and other parts of Italy, it’s hard to find toilets and even on some cafes they don’t have toilets for customers.