import authService from '../components/api-authorization/AuthorizeService' ; export class ApiClientBase { baseApiUrl : string = "https://localhost:44335/" ; protected async transformOptions ( options ) { const token = await authService . getAccessToken ( ) ; options . headers = { ... options . headers , authorization : `Bearer ${ token }` } ; return Promise . resolve ( options ) ; } protected transformResult ( url , response , processor ) { return processor ( response ) ; } protected getBaseUrl ( defaultUrl , baseUrl ? ) { return this . baseApiUrl ; } }