(url: string, config?: AxiosRequestConfig)
| 63 | } |
| 64 | |
| 65 | get<T>(url: string, config?: AxiosRequestConfig): Promise<void | AxiosResponse<T>> { |
| 66 | return axios.get<T>(url, this.makeRequestConfig(config)).catch((err: AxiosError) => { |
| 67 | if (err.response != null && err.response.status === 401) { |
| 68 | this.jwt.revokeToken(); |
| 69 | return; |
| 70 | } |
| 71 | throw err; |
| 72 | }); |
| 73 | } |
| 74 | } |
no test coverage detected