Skip to content

Commit

Permalink
added setAuth documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed May 9, 2023
1 parent 57de1bb commit 5b5391a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,17 @@ await fula.checkFailedActions(
);
```
```js
//Gives access to the blox for a specific peerId. This call must be made from the authorizer only.
const result //returns true if succesful and false if fails
=
await fula.setAuth(
peerId: string, //peer ID of the app that needs access to the blox
allow: boolean, // true to allow and false to remove access
);

```
```js
//shuts down the fula libp2p and datastore
await fula.shutdown();
Expand Down

0 comments on commit 5b5391a

Please sign in to comment.