Diizzayy / nuxt-graphql-client

⚡️ Minimal GraphQL Client + Code Generation for Nuxt3
https://nuxt-graphql-client.web.app
MIT License
366 stars 44 forks source link

Headers are not being taken when using gql functions #352

Open allusernamestakenexceptthis opened 1 year ago

allusernamestakenexceptthis commented 1 year ago

Environment

Operating System: Darwin

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