bearer-added
This commit is contained in:
parent
93eafb47d0
commit
f3cfa97254
|
@ -32,7 +32,7 @@ export const InboxProvider = (props: { children: JSX.Element }) => {
|
|||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: getToken()
|
||||
Authorization: 'Bearer ' + getToken()
|
||||
},
|
||||
onmessage(event) {
|
||||
const message = JSON.parse(event.data)
|
||||
|
|
|
@ -38,7 +38,7 @@ const options: ClientOptions = {
|
|||
if (!token) {
|
||||
console.error('[privateGraphQLClient] fetchOptions: token is null!')
|
||||
}
|
||||
const headers = { Authorization: token }
|
||||
const headers = { Authorization: 'Bearer ' + token }
|
||||
return { headers }
|
||||
},
|
||||
exchanges
|
||||
|
|
Loading…
Reference in New Issue
Block a user