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

Override Authorization header per request #327

Open
iBobik opened this issue Apr 28, 2023 · 0 comments
Open

Override Authorization header per request #327

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

Comments

@iBobik
Copy link

iBobik commented Apr 28, 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

I need to override token for one specific call, but this does not work:

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

Expected behaviour

Will allow to override token like this.

Reproduction

No response

Additional context

I could probably use separated client for this, but it will be very inconvenient of I want to do it only for one call to the same API.

Logs

No response

@iBobik iBobik added the bug Something isn't working label Apr 28, 2023
@iBobik iBobik changed the title Override Aithorization header per request Override Authorization header per request Apr 28, 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