Please, I am having issues interacting with LXD unix.socket using nodejs, I want to know how to properly authenticate the connection using token or any other means.
You can connect to the unix socket with axios by doing
// construct client
const client = new Axios({
socketPath: "unix:///var/snap/lxd/common/lxd/unix.socket"
})
// request resources
client.get("/1.0/resources")
Thanks so much