From 4663826b9b7df91b19458f38650a285dce8cb5fa Mon Sep 17 00:00:00 2001 From: Salah-BOUYAHIA Date: Thu, 15 Jun 2023 10:51:07 +0200 Subject: [PATCH] fix: correcting Authorization Method in headers --- src/services/apiBackend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/apiBackend.js b/src/services/apiBackend.js index 5ed76e773..bc3c8767a 100644 --- a/src/services/apiBackend.js +++ b/src/services/apiBackend.js @@ -12,7 +12,7 @@ apiBackend.interceptors.request.use((config) => { const oidcAuthState = localStorage.getItem('oidcAuth') const token = localStorage.getItem(ACCESS_TOKEN) config.headers.Authorization = `Bearer ${token}` - config.headers['authorizationMehtod'] = oidcAuthState === true ? 'OIDC' : 'JWT' + config.headers.authorizationMethod = oidcAuthState === true ? 'OIDC' : 'JWT' return config })