I added the obtain-auth-headers code to solid-auth-fetcher, so this PR is to remove it here and use it from there.
The build is failing though, not sure why:
$ npm run build
> solid-node-client@1.0.0 build /Users/michiel/gh/solid/solid-node-client
> tsc --esModuleInterop src/index
src/index.ts:73:27 - error TS2339: Property 'fetch' does not exist on type 'ISolidSession'.
Property 'fetch' does not exist on type 'ILoggedOutSolidSession'.
73 let originalFetch = s.fetch;
~~~~~
src/index.ts:74:7 - error TS2339: Property 'fetch' does not exist on type 'ISolidSession'.
Property 'fetch' does not exist on type 'ILoggedOutSolidSession'.
74 s.fetch = (url:string,opts:any) => {
~~~~~
Found 2 errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! solid-node-client@1.0.0 build: `tsc --esModuleInterop src/index`
npm ERR! Exit status 2
I added the obtain-auth-headers code to solid-auth-fetcher, so this PR is to remove it here and use it from there. The build is failing though, not sure why: