Shared Project (Node.js) / Connected Client Check

Hello again.

I have node.js on my local server (Raspberry)
I share my alarm Project with family but I want to have the full control of some Things.

There is a way to check in my node.js who is online/connected ?? Maybe by clients email ?

The main idea is to check if the connected user is the “admin” somehow and then allow or not the execution of the command…