Open linonetwo opened 4 years ago
At the moment, this wouldn't be easy, since the dependency is all the way down at https://github.com/comunica/actor-http-solid-auth-fetch. We'd have to change it there.
However, given that solid-auth-cli
is currently a hack (by necessity), I'm hesitant to incorporate it. I'm awaiting @jaxoncreed's work to make this better.
Actually what I want to do is writing data using nodejs, which requires login.
If there is a built-in way to login when using query-ldflex is also OK.
We currently don't have this, and it won't be easy to achieve this in a reliable and secure way with the existing libraries, unfortunately.
I'm using
import solidAuth from 'solid-auth-cli';
so I can fetch in NodeJS.How to pass obtained Session to
query-ldflex
? Is there a chance to inject depencency?