Unfortunately there doesn't appear to be any easy way to do this.
However, you could try running the node process as root and using process.setuid to switch between macOS user accounts that are signed into different iCloud accounts. In theory this should work, but I've never tried it.
Unfortunately there doesn't appear to be any easy way to do this.
However, you could try running the node process as
root
and usingprocess.setuid
to switch between macOS user accounts that are signed into different iCloud accounts. In theory this should work, but I've never tried it.