@@ -141,7 +141,7 @@ import { Glean } from "@gleanwork/api-client";
141141
142142const =  new  Glean ({
143143  security: {
144-     actAsBearerToken : process .env [" GLEAN_ACT_AS_BEARER_TOKEN " ??  " " 
144+     apiToken : process .env [" GLEAN_API_TOKEN " ??  " " 
145145  },
146146});
147147
@@ -173,7 +173,7 @@ import { Glean } from "@gleanwork/api-client";
173173
174174const =  new  Glean ({
175175  security: {
176-     actAsBearerToken : process .env [" GLEAN_ACT_AS_BEARER_TOKEN " ??  " " 
176+     apiToken : process .env [" GLEAN_API_TOKEN " ??  " " 
177177  },
178178});
179179
@@ -206,18 +206,18 @@ run();
206206
207207This SDK supports the following security schemes globally:
208208
209- |  Name                |  Type   |  Scheme  |  Environment Variable         | 
210- |  ------------------  |  ------ |  -------  |   ------- -------------------- | 
211- |  ` actAsBearerToken `   |  apiKey  |  API key  |  ` GLEAN_ACT_AS_BEARER_TOKEN `  | 
212- |  ` cookieAuth `         |  apiKey |  API key |   ` GLEAN_COOKIE_AUTH `           | 
209+ |  Name         |  Type   |  Scheme       |  Environment Variable  | 
210+ |  ------------ |  ------ |  -----------  |   -------------------- | 
211+ |  ` apiToken `     |  http    |  HTTP Bearer  |  ` GLEAN_API_TOKEN `      | 
212+ |  ` cookieAuth `  |  apiKey |  API key      |   ` GLEAN_COOKIE_AUTH `   | 
213213
214214You can set the security parameters through the ` security `  optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
215215``` typescript 
216216import  { Glean  } from  " @gleanwork/api-client" 
217217
218218const =  new  Glean ({
219219  security: {
220-     actAsBearerToken : process .env [" GLEAN_ACT_AS_BEARER_TOKEN " ??  " " 
220+     apiToken : process .env [" GLEAN_API_TOKEN " ??  " " 
221221  },
222222});
223223
@@ -771,7 +771,7 @@ import { Glean } from "@gleanwork/api-client";
771771
772772const =  new  Glean ({
773773  security: {
774-     actAsBearerToken : process .env [" GLEAN_ACT_AS_BEARER_TOKEN " ??  " " 
774+     apiToken : process .env [" GLEAN_API_TOKEN " ??  " " 
775775  },
776776});
777777
@@ -835,7 +835,7 @@ const glean = new Glean({
835835    retryConnectionErrors: false ,
836836  },
837837  security: {
838-     actAsBearerToken : process .env [" GLEAN_ACT_AS_BEARER_TOKEN " ??  " " 
838+     apiToken : process .env [" GLEAN_API_TOKEN " ??  " " 
839839  },
840840});
841841
@@ -955,7 +955,7 @@ import { Glean } from "@gleanwork/api-client";
955955const =  new  Glean ({
956956  instance: " <value>" 
957957  security: {
958-     actAsBearerToken : process .env [" GLEAN_ACT_AS_BEARER_TOKEN " ??  " " 
958+     apiToken : process .env [" GLEAN_API_TOKEN " ??  " " 
959959  },
960960});
961961
@@ -1001,7 +1001,7 @@ import { Glean } from "@gleanwork/api-client";
10011001const =  new  Glean ({
10021002  serverURL: " https://instance-name-be.glean.com" 
10031003  security: {
1004-     actAsBearerToken : process .env [" GLEAN_ACT_AS_BEARER_TOKEN " ??  " " 
1004+     apiToken : process .env [" GLEAN_API_TOKEN " ??  " " 
10051005  },
10061006});
10071007
0 commit comments