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

Cannot set token in query #328

Open iBobik opened 1 year ago

iBobik commented 1 year ago

Environment

Describe the bug

Contember CMS requires to use separated token for login operations, but this does not work:

GqlUserLogin({ email: email.value, password: password.value }, { Authorization: 'Bearer xxx' })

Expected behaviour

I can override token in a query. By header or by separated option.

Reproduction

No response

Additional context

Workaround is to configure additional client with just different token, but this is not handy because I have to duplicate fragments in query definitions.

Logs

No response