Skip to content

Commit 46b3df5

Browse files
authored
Merge pull request #229 from authzed/update-code-snippets
update code snippets
2 parents 228edf2 + 8549827 commit 46b3df5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ You will have to provide a your own API Token from the [Authzed dashboard] in pl
5959
```js
6060
import { v1 } from '@authzed/authzed-node';
6161
// if your endpoint is localhost
62-
// const client = v1.NewClient('t_your_token_here_1234567deadbeef', 'localhost:50051', ClientSecurity.INSECURE_LOCALHOST_ALLOWED);
62+
// const client = v1.NewClient('t_your_token_here_1234567deadbeef', 'localhost:50051', v1.ClientSecurity.INSECURE_LOCALHOST_ALLOWED);
6363
const client = v1.NewClient('t_your_token_here_1234567deadbeef');
6464
```
6565

examples/v1/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { v1 } from '@authzed/authzed-node';
22
// set up it on localhost like this:
3-
// const client = v1.NewClient('mytokenhere', 'localhost:50051', 1);
3+
// const client = v1.NewClient('mytokenhere', 'localhost:50051', v1.ClientSecurity.INSECURE_LOCALHOST_ALLOWED);
44
const client = v1.NewClient('mytokenhere');
55
const { promises: promiseClient } = client; // access client.promises after instantiating client
66

0 commit comments

Comments
 (0)