mirror of
https://github.com/tribufu/tribufu-js
synced 2026-05-06 06:47:27 +00:00
Add setApiKey
This commit is contained in:
parent
804a116b7b
commit
db6a2cd5da
1 changed files with 10 additions and 0 deletions
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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue