Adding a logout link to a hub that requires username and password

I would like to protect a hub with basics usernames/passwords entered on the publishing page, but I would also like to provide users a way to logout. Is there a generic link that I can reference e.g. ~/logout, that would log the current user out?

Thanks.

Hey there,

We don’t provide this kind of functionality but it is possible with some Custom JS.