Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set token in query #328

Open
iBobik opened this issue May 4, 2023 · 0 comments
Open

Cannot set token in query #328

iBobik opened this issue May 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@iBobik
Copy link

iBobik commented May 4, 2023

Environment

  • Operating System: Darwin
  • Node Version: v18.15.0
  • Nuxt Version: 3.3.3
  • Nitro Version: 2.3.2
  • Package Manager: [email protected]
  • Builder: vite
  • User Config: ssr, css, build, devServer, modules, runtimeConfig
  • Runtime Modules: [email protected]
  • Build Modules: -

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

@iBobik iBobik added the bug Something isn't working label May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant