I have project on php and websocket server, written on C using libwebsockets. And i have to organize some auth logic between client side js code and server side. On php i use se