- Remove Bearer
- change chat endpoint
This commit is contained in:
parent
e4f545b935
commit
6c9e930a03
|
@ -96,7 +96,7 @@ export const NotificationsProvider = (props: { children: JSX.Element }) => {
|
||||||
if (isAuthenticated()) {
|
if (isAuthenticated()) {
|
||||||
loadNotifications()
|
loadNotifications()
|
||||||
|
|
||||||
await fetchEventSource('https://connect.discours.io', {
|
await fetchEventSource('https://chat.discours.io/connect', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|
|
@ -38,7 +38,7 @@ const options: ClientOptions = {
|
||||||
if (!token) {
|
if (!token) {
|
||||||
console.error('[privateGraphQLClient] fetchOptions: token is null!')
|
console.error('[privateGraphQLClient] fetchOptions: token is null!')
|
||||||
}
|
}
|
||||||
const headers = { Authorization: 'Bearer ' + token }
|
const headers = { Authorization: token }
|
||||||
return { headers }
|
return { headers }
|
||||||
},
|
},
|
||||||
exchanges
|
exchanges
|
||||||
|
|
Loading…
Reference in New Issue
Block a user