🐛Temporary fix for twake client auth in plugin

This commit is contained in:
Anton SHEPILOV
2024-03-09 09:48:58 +01:00
parent 6d21bc4d8d
commit 2ecf74cdf2
@@ -127,14 +127,12 @@ export class TwakeDriveClient {
}
private async client() {
if (!this.clientInstance) {
this.clientInstance = axios.create({
baseURL: this.config.url,
headers: {
Authorization: `Bearer ${await (this.accessToken())}`,
},
});
}
this.clientInstance = axios.create({
baseURL: this.config.url,
headers: {
Authorization: `Bearer ${await (this.accessToken())}`,
},
});
return this.clientInstance;
}