From 77e7f290d8d54ee587e2bcf1d0629c640b3ddbf4 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 13 Mar 2024 18:33:59 -0400 Subject: [PATCH] refactor: add jwtToken getter --- src/account.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/account.ts b/src/account.ts index e2c76d5..639eb50 100644 --- a/src/account.ts +++ b/src/account.ts @@ -26,6 +26,7 @@ import { import { AxiosResponse } from "axios"; export class AccountApi { + private apiUrl: string; private _jwtToken?: string; @@ -40,6 +41,9 @@ export class AccountApi { set jwtToken(value: string) { this._jwtToken = value; } + get jwtToken(): string { + return this._jwtToken; + } public static create(apiUrl: string): AccountApi { return new AccountApi(apiUrl);