- Remove Bearer

- change chat endpoint
This commit is contained in:
ilya-bkv 2023-11-15 16:57:24 +03:00
parent e4f545b935
commit 6c9e930a03
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

@ -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