I’ve seen a few issues posted about using
blockstack.js in node environments, specifically creating user sessions, but it wasn’t clear what the status of this type of functionality is. Almost all the documentation from what I can tell seems to be focused on running auth from a browser. For the purposes of the app I’d like to build, I’m trying to instantiate a blockstack user session on the server that would be able to lookup files from a Gaia hub for example as well as run some encrypt/decrypt operations based off an app private key. Specifically, I’d like to create a framework where the user on the client side is able to interact with the server as if it was another user for a multi-player construction.
Is this possible with the current toolset? The closest thing I could find was the blockstack-cli which still looks like it has to polyfill things like a
window global object. I found this issue on GitHub which mentions the problem and has had some activity and related merges but doesn’t seem to be resolved yet.