Skip to content

Commit

Permalink
chore: update model id environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed May 1, 2024
1 parent 10ce677 commit 6b38a68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void run(String apiUrl) throws Exception {
.apiUrl(apiUrl) // required, e.g. https://api.fga.example
.storeId(System.getenv("FGA_STORE_ID")) // not needed when calling `CreateStore` or `ListStores`
.authorizationModelId(
System.getenv("FGA_AUTHORIZATION_MODEL_ID")) // Optional, can be overridden per request
System.getenv("FGA_MODEL_ID")) // Optional, can be overridden per request
.credentials(credentials);
var fgaClient = new OpenFgaClient(configuration);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal class KotlinExample1 {
.apiUrl(System.getenv("FGA_API_URL")) // required, e.g. https://api.fga.example
.storeId(System.getenv("FGA_STORE_ID")) // not needed when calling `CreateStore` or `ListStores`
.authorizationModelId(
System.getenv("FGA_AUTHORIZATION_MODEL_ID")
System.getenv("FGA_MODEL_ID")
) // Optional, can be overridden per request
.credentials(credentials)
val fgaClient = OpenFgaClient(configuration)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public void run(String apiUrl) throws Exception {
var configuration = new ClientConfiguration()
.apiUrl(apiUrl) // required, e.g. https://api.fga.example
.storeId(System.getenv("FGA_STORE_ID")) // not needed when calling `CreateStore` or `ListStores`
.authorizationModelId(
System.getenv("FGA_AUTHORIZATION_MODEL_ID")) // Optional, can be overridden per request
.authorizationModelId(System.getenv("FGA_MODEL_ID")) // Optional, can be overridden per request
.credentials(credentials);
var fgaClient = new OpenFgaClient(configuration);

Expand Down

0 comments on commit 6b38a68

Please sign in to comment.