textileio / js-textile

Textile's JavaScript Libs. Home of ThreadDB, Buckets, and more. Available on npm as `@textile/hub`.
https://textileio.github.io/js-textile/docs
MIT License
85 stars 19 forks source link

Read vs write permisions #1193

Closed dabit3 closed 2 years ago

dabit3 commented 3 years ago

Is there a way to have read only permissions, or to grant write permissions to certain users?

Is this what client.getToken is doing?

How do we create a read-only client vs a permissioned client?

Thanks,

carsonfarmer commented 2 years ago

There isn't really this concept in threads. There is this mostly undocumented API that allows you to specify write validation and read filter functions, which allows you to control who can read and write and what they can read and write:

carsonfarmer commented 2 years ago

I'm going to close this as "answered" but please feel free to reopen!