🐛Temporary fix for twake client auth in plugin
This commit is contained in:
@@ -127,14 +127,12 @@ export class TwakeDriveClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async client() {
|
private async client() {
|
||||||
if (!this.clientInstance) {
|
this.clientInstance = axios.create({
|
||||||
this.clientInstance = axios.create({
|
baseURL: this.config.url,
|
||||||
baseURL: this.config.url,
|
headers: {
|
||||||
headers: {
|
Authorization: `Bearer ${await (this.accessToken())}`,
|
||||||
Authorization: `Bearer ${await (this.accessToken())}`,
|
},
|
||||||
},
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
return this.clientInstance;
|
return this.clientInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user