From 6c9e930a0364c0361a4545b5f454f9ed5a30991f Mon Sep 17 00:00:00 2001 From: ilya-bkv Date: Wed, 15 Nov 2023 16:57:24 +0300 Subject: [PATCH] - Remove Bearer - change chat endpoint --- src/context/notifications.tsx | 2 +- src/graphql/privateGraphQLClient.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context/notifications.tsx b/src/context/notifications.tsx index 3c519752..f0476e43 100644 --- a/src/context/notifications.tsx +++ b/src/context/notifications.tsx @@ -96,7 +96,7 @@ export const NotificationsProvider = (props: { children: JSX.Element }) => { if (isAuthenticated()) { loadNotifications() - await fetchEventSource('https://connect.discours.io', { + await fetchEventSource('https://chat.discours.io/connect', { method: 'GET', headers: { 'Content-Type': 'application/json', diff --git a/src/graphql/privateGraphQLClient.ts b/src/graphql/privateGraphQLClient.ts index b39305ac..375001e1 100644 --- a/src/graphql/privateGraphQLClient.ts +++ b/src/graphql/privateGraphQLClient.ts @@ -38,7 +38,7 @@ const options: ClientOptions = { if (!token) { console.error('[privateGraphQLClient] fetchOptions: token is null!') } - const headers = { Authorization: 'Bearer ' + token } + const headers = { Authorization: token } return { headers } }, exchanges