refactor: add jwtToken getter
This commit is contained in:
parent
f8f8780f97
commit
77e7f290d8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue