diff --git a/src/services/Services.js b/src/services/Services.js index 1c883a7..6439dc1 100644 --- a/src/services/Services.js +++ b/src/services/Services.js @@ -103,6 +103,10 @@ class Services { this.#fetchWrapper = new OAuth2Fetch({ client: this.#client, getNewToken: async () => { + // en mode distant, on ne redemande pas de jeton + if (this.token && Object.keys(this.token).length && this.mode === "remote") { + return this.token; + } var token = await this.#client.authorizationCode.getToken({ code: this.code, redirectUri: this.url,