mirror of
https://github.com/tribufu/sdk-js
synced 2025-06-15 18:24:19 +00:00
Update package.json and client.ts
This commit updates the version number in the package.json file from 0.1.9 to 0.1.10. It also changes the access level of the setTokens() and clearTokens() methods in the client.ts file from private to protected.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tribufu",
|
||||
"version": "0.1.9",
|
||||
"version": "0.1.10",
|
||||
"description": "Tribufu JS SDK",
|
||||
"repository": "https://github.com/Tribufu/TribufuJs",
|
||||
"author": "Tribufu <contact@Tribufu.com>",
|
||||
|
@ -85,7 +85,7 @@ export class TribufuClient extends TribufuApi {
|
||||
* @param refreshToken
|
||||
* @param expiresIn
|
||||
*/
|
||||
private setTokens(accessToken: string | null, refreshToken?: string | null, expiresIn?: number | null): void {
|
||||
protected setTokens(accessToken: string | null, refreshToken?: string | null, expiresIn?: number | null): void {
|
||||
this.options.accessToken = accessToken;
|
||||
this.options.refreshToken = refreshToken || null;
|
||||
this.options.expiresIn = expiresIn || null;
|
||||
@ -94,7 +94,7 @@ export class TribufuClient extends TribufuApi {
|
||||
/**
|
||||
* Clear the tokens.
|
||||
*/
|
||||
private clearTokens(): void {
|
||||
protected clearTokens(): void {
|
||||
this.setTokens(null, null, null);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user