mirror of
https://github.com/tribufu/sdk-js
synced 2025-06-15 18:24:19 +00:00
Add setApiKey
This commit is contained in:
10
src/api.ts
10
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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user