Skip to content

Commit

Permalink
fix sur l'appel d'un nouveau token
Browse files Browse the repository at this point in the history
  • Loading branch information
lowzonenose committed Dec 13, 2024
1 parent 4bec864 commit 0b3e6a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/Services.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0b3e6a7

Please sign in to comment.