Node-red-contrib-users

you can route your users to .../users/logout, for example via a link in your html content served to the http endpoint. This will terminate the session of the logged-in client