bearer-added
This commit is contained in:
parent
93eafb47d0
commit
f3cfa97254
|
@ -32,7 +32,7 @@ export const InboxProvider = (props: { children: JSX.Element }) => {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
Authorization: getToken()
|
Authorization: 'Bearer ' + getToken()
|
||||||
},
|
},
|
||||||
onmessage(event) {
|
onmessage(event) {
|
||||||
const message = JSON.parse(event.data)
|
const message = JSON.parse(event.data)
|
||||||
|
|
|
@ -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: token }
|
const headers = { Authorization: 'Bearer ' + token }
|
||||||
return { headers }
|
return { headers }
|
||||||
},
|
},
|
||||||
exchanges
|
exchanges
|
||||||
|
|
Loading…
Reference in New Issue
Block a user