Skip to content

Commit 8f57fc4

Browse files
authored
Merge pull request #121 from luanxuechao/main
[Docs]Add some descriptions for local setup
2 parents 371fb3a + cca41a9 commit 8f57fc4

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ You will have to provide a your own API Token from the [Authzed dashboard] in pl
5858

5959
```js
6060
import { v1 } from '@authzed/authzed-node';
61-
61+
// if your endpoint is localhost
62+
// const client = v1.NewClient('t_your_token_here_1234567deadbeef', 'localhost:50051', ClientSecurity.INSECURE_LOCALHOST_ALLOWED);
6263
const client = v1.NewClient('t_your_token_here_1234567deadbeef');
6364
```
6465

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

146147
Minimum TypeScript version 3.8
147-

examples/v1/example.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { v1 } from '@authzed/authzed-node';
2-
2+
// set up it on localhost like this:
3+
// const client = v1.NewClient('mytokenhere', 'localhost:50051', 1);
34
const client = v1.NewClient('mytokenhere');
45

56
const writeRequest = v1.WriteSchemaRequest.create({

0 commit comments

Comments
 (0)