bearer-added

This commit is contained in:
Untone 2023-10-13 14:50:46 +03:00
parent 93eafb47d0
commit f3cfa97254
2 changed files with 2 additions and 2 deletions

View File

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

View File

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