From a687a5998e162fef77abaf0647f2e54e06632081 Mon Sep 17 00:00:00 2001 From: Mitan Omar Date: Thu, 15 Feb 2024 11:45:44 +0100 Subject: [PATCH] fix(fetch-service): insure token is valid before making request --- app/services/fetch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/fetch.js b/app/services/fetch.js index 62fedbabb..8b43b16ae 100644 --- a/app/services/fetch.js +++ b/app/services/fetch.js @@ -43,6 +43,7 @@ export default class FetchService extends Service { @service session; async fetch(resource, init = {}) { + await this.session.refreshAuthentication.perform(); init.headers = cleanObject({ ...this.headers, ...(init.headers || {}),