Skip to content

Commit

Permalink
Add some description for local setup
Browse files Browse the repository at this point in the history
  • Loading branch information
luanxuechao committed Jun 7, 2024
1 parent 371fb3a commit cca41a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ You will have to provide a your own API Token from the [Authzed dashboard] in pl

```js
import { v1 } from '@authzed/authzed-node';

// if your endpoint is localhost
// const client = v1.NewClient('t_your_token_here_1234567deadbeef', 'localhost:50051', ClientSecurity.INSECURE_LOCALHOST_ALLOWED);
const client = v1.NewClient('t_your_token_here_1234567deadbeef');
```

Expand Down Expand Up @@ -144,4 +145,3 @@ console.log(results[0]); // first ReadRelationship result
Supported Node.js versions: 14, 16, 17

Minimum TypeScript version 3.8

3 changes: 2 additions & 1 deletion examples/v1/example.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { v1 } from '@authzed/authzed-node';

// set up it on localhost like this:
// const client = v1.NewClient('mytokenhere', 'localhost:50051', 1);
const client = v1.NewClient('mytokenhere');

const writeRequest = v1.WriteSchemaRequest.create({
Expand Down

0 comments on commit cca41a9

Please sign in to comment.