From de756cd1d22197d7ffe56a0486d06079b688a1e3 Mon Sep 17 00:00:00 2001 From: Leonardo Christino <leomilho@gmail.com> Date: Tue, 24 Oct 2023 19:55:30 +0200 Subject: [PATCH] feat(auth): revert authentication temporarily --- .../lib/data-access/authorization/useAuth.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/libs/shared/lib/data-access/authorization/useAuth.tsx b/libs/shared/lib/data-access/authorization/useAuth.tsx index 09ed2f1ae..d9d20491d 100644 --- a/libs/shared/lib/data-access/authorization/useAuth.tsx +++ b/libs/shared/lib/data-access/authorization/useAuth.tsx @@ -68,14 +68,13 @@ export const useAuth = () => { init.credentials = 'include'; init.redirect = 'follow'; init.method = init.method || 'GET'; - init.headers = { - 'Content-Type': 'application/json', - Userid: auth.userID || '', - // Userid: 'asdasd', - Sessionid: auth.sessionID || '', - Authorization: `Bearer ${auth.jwt}`, - ...init.headers, - }; + // init.headers = { + // 'Content-Type': 'application/json', + // Userid: auth.userID || '', + // Sessionid: auth.sessionID || '', + // Authorization: `Bearer ${auth.jwt}`, + // ...init.headers, + // }; return fetch(input, init); }; -- GitLab