- 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()) {
|
||||
loadNotifications()
|
||||
|
||||
await fetchEventSource('https://connect.discours.io', {
|
||||
await fetchEventSource('https://chat.discours.io/connect', {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user