Symfony Node JS Check if user is authenticated

I'm creating a project, but I'm running into a problem. In my project, after user logs in he will be redirected to my dashboard. When the user is logged in, there will be an attempt to connect to my node server. But how can I authenticate the user, so that non-authenticated user cannot acces the server? What should I pass to the server? I'm using the FOSUserBundle.