Skip to content

Commit 17aadad

Browse files
michielbdejongangelo-v
authored andcommitted
Fix rdflib Fetcher options
1 parent bc65354 commit 17aadad

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

chats/rdflib/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,15 @@ import ChatsModuleRdfLib, { ChatsModule } from "@solid-data-modules/chats-rdflib
3939

4040
// 1️⃣ create rdflib store, fetcher and updater as usual
4141
const store = graph();
42-
const fetcher = new Fetcher(
43-
store,
42+
const options = {
4443
// 💡 pass an authenticated fetch
45-
// to be able to access private resources*
44+
// to be able to access private resources,
45+
// see https://linkeddata.github.io/rdflib.js/doc/interfaces/AutoInitOptions.html
4646
/* fetch: authenticatedFetch */
47+
};
48+
const fetcher = new Fetcher(
49+
store,
50+
options,
4751
);
4852
const updater = new UpdateManager(store);
4953

0 commit comments

Comments
 (0)