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

Consider a logging warning when both GQL_TOKEN and clients.default.token are set #490

Open
maximilliangeorge opened this issue Jun 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@maximilliangeorge
Copy link

maximilliangeorge commented Jun 6, 2024

Your use case

I spent a few agonising hours trying to understand why authentication wasn't working in production. Turns out I had an old GQL_TOKEN in my environment variables, which cancelled out whatever token I was trying to define in my nuxt.config.ts.

The solution you'd like

I can see the benefits of being able to define the token in two separate ways, but it would be nice with some sort of hint that the token in nuxt.config.ts was being overwritten.

Possible alternatives

No response

Additional information

No response

@maximilliangeorge maximilliangeorge added the enhancement New feature or request label Jun 6, 2024
@maximilliangeorge maximilliangeorge changed the title Consider a warning message when both GQL_TOKEN and clients.default.token are set Consider a logging warning when both GQL_TOKEN and clients.default.token are set Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant