update authorization of socket.io