refactor: add jwtToken getter

This commit is contained in:
Derrick Hammer 2024-03-13 18:33:59 -04:00
parent f8f8780f97
commit 77e7f290d8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -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 <string>this._jwtToken;
}
public static create(apiUrl: string): AccountApi {
return new AccountApi(apiUrl);