Add setApiKey

This commit is contained in:
2024-05-07 20:00:43 -03:00
parent 804a116b7b
commit db6a2cd5da

View File

@ -95,6 +95,16 @@ export class TribufuApi {
return TribufuApi.fromEnv(prefix) || TribufuApi.default();
}
/**
* Set the tokens.
* @param accessToken
* @param refreshToken
* @param expiresIn
*/
protected setApiKey(apiKey: string | null): void {
this.options.apiKey = apiKey;
}
/**
* Check if debug mode is enabled.
*