Magento 2.3 display logged in/out message using private content

Does anyone have an example on how to display a logged in vs logged out message on frontend to customer that’s not affected by cache without using the cache=false tag and hole punching the whole page

I’m assuming using knockout / section / customerData / private content somehow.

I’ve read a lot of tutorials and responses like this https://magento.stackexchange.com/a/261067/70343

But just looking for an example on how to do this