Added an example using auth

It publishes and subscribes at the same time