From db6a2cd5daba8d8422831cc686b4d94f8338568e Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 7 May 2024 20:00:43 -0300 Subject: [PATCH] Add setApiKey --- src/api.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/api.ts b/src/api.ts index d9604c2..dfb34fd 100644 --- a/src/api.ts +++ b/src/api.ts @@ -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. *