Update client.ts

This commit is contained in:
2024-08-02 10:18:31 -03:00
parent 4186350f7e
commit 6d631ffea8

View File

@ -40,7 +40,7 @@ export class TribufuClient extends TribufuApi {
*/
public static override fromEnv(prefix?: string | null): TribufuClient | null {
const envPrefix = prefix ? `${prefix}_` : "";
const apiKey = process.env[`${envPrefix}API_KEY`];
//const apiKey = process.env[`${envPrefix}API_KEY`];
const clientId = process.env[`${envPrefix}CLIENT_ID`];
const clientSecret = process.env[`${envPrefix}CLIENT_SECRET`];
@ -50,9 +50,11 @@ export class TribufuClient extends TribufuApi {
const client = new TribufuClient(clientId, clientSecret);
/*
if (apiKey) {
client.setApiKey(apiKey);
}
*/
return client;
}