Open
Description
There is a section on the README called reading and writing data. However it only shows how to read, and not write. I think it would be helpful to add an example to write data with an HTTP PUT.
Reading and writing data
The fetch
method mimics
the browser's fetch
API.
You can use it to access any kind of HTTP(S) document,
regardless of whether that document is on a Solid pod:
solid.auth.fetch('https://timbl.com/timbl/Public/friends.ttl')
.then(console.log);
const { fetch } = solid.auth;
fetch('https://timbl.com/timbl/Public/friends.ttl')
.then(console.log);
If the document is on a Solid pod,
and the user is logged in,
they will be able to access private documents
that require read or write permissions.
https://github.com/solid/solid-auth-client#reading-and-writing-data