File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
6060import { 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);
6263const client = v1 .NewClient (' t_your_token_here_1234567deadbeef' );
6364```
6465
@@ -144,4 +145,3 @@ console.log(results[0]); // first ReadRelationship result
144145Supported Node.js versions: 14, 16, 17
145146
146147Minimum TypeScript version 3.8
147-
Original file line number Diff line number Diff line change 11import { v1 } from '@authzed/authzed-node' ;
2-
2+ // set up it on localhost like this:
3+ // const client = v1.NewClient('mytokenhere', 'localhost:50051', 1);
34const client = v1 . NewClient ( 'mytokenhere' ) ;
45
56const writeRequest = v1 . WriteSchemaRequest . create ( {
You can’t perform that action at this time.
0 commit comments