From 7ee4ba05169243bbdfd2c0df11950a8243e3b613 Mon Sep 17 00:00:00 2001 From: ChamseddineBhd Date: Mon, 4 May 2020 17:44:52 +0200 Subject: [PATCH] remove : Signed-off-by: ChamseddineBhd --- src/utils/rest-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/rest-api.js b/src/utils/rest-api.js index 5ba208505d..e1415a8e59 100644 --- a/src/utils/rest-api.js +++ b/src/utils/rest-api.js @@ -28,7 +28,7 @@ function backendFetch(url, init) { const initCopy = Object.assign({}, init); if (process.env.REACT_APP_USE_AUTHENTICATION === "true") { initCopy.headers = new Headers(initCopy.headers); - initCopy.headers.append("Authorization", "Bearer: " + getToken()) + initCopy.headers.append("Authorization", "Bearer " + getToken()) } return fetch(url, initCopy); }