Open allusernamestakenexceptthis opened 1 year ago
Operating System: Darwin
Darwin
v18.17.0
3.3.2
2.3.2
npm@9.6.7
vite
-
I'm trying to run gql function on server side, since useGqlToken and useGqlHeaders not available at this stage. I'm trying to set headers when using gql function e.g.
GqlGetUsersById(id, headers: {Authorization: "bearer something"}
but it doesn't seem to be working, at the end it's not being authenticated.
headers sent, being authenticated
No response
Environment
Operating System:
Darwin
v18.17.0
3.3.2
2.3.2
npm@9.6.7
vite
-
-
-
Describe the bug
I'm trying to run gql function on server side, since useGqlToken and useGqlHeaders not available at this stage. I'm trying to set headers when using gql function e.g.
GqlGetUsersById(id, headers: {Authorization: "bearer something"}
but it doesn't seem to be working, at the end it's not being authenticated.
Expected behaviour
headers sent, being authenticated
Reproduction
No response
Additional context
No response
Logs
No response