diff --git a/README.md b/README.md index 8ecd477..9d4c3c0 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ 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', 'localhost:50051', v1.ClientSecurity.INSECURE_LOCALHOST_ALLOWED); const client = v1.NewClient('t_your_token_here_1234567deadbeef'); ``` diff --git a/examples/v1/example.js b/examples/v1/example.js index 9390d4f..612e55e 100644 --- a/examples/v1/example.js +++ b/examples/v1/example.js @@ -1,6 +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', 'localhost:50051', v1.ClientSecurity.INSECURE_LOCALHOST_ALLOWED); const client = v1.NewClient('mytokenhere'); const { promises: promiseClient } = client; // access client.promises after instantiating client