linkeddata / rdflib.js

Linked Data API for JavaScript
http://linkeddata.github.io/rdflib.js/doc/
Other
562 stars 142 forks source link

Simplify example code showing setting solidFetcher #556

Closed ThisIsMissEm closed 2 years ago

ThisIsMissEm commented 2 years ago

In the @inrupt/solid-client-authn-browser SDK, we always expose a fetch method, so you don't need to set solidFetcher only after login, you can do this before and it'll switch based on whether you're logged in or not — by default the fetch method uses global fetch until the session is established, at which point it switches to fetch with authorization and dpop headers.

jeff-zucker commented 2 years ago

LGTM, thanks for catching those.