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

useGqlToken without options stopped working #613

Open
iBobik opened this issue Feb 17, 2025 · 0 comments
Open

useGqlToken without options stopped working #613

iBobik opened this issue Feb 17, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@iBobik
Copy link

iBobik commented Feb 17, 2025

Environment

Describe the bug

In nuxt-graphql-client version 0.2.34, I used useGqlToken(newToken) in login process, but now I upgraded to the 0.2.43 and it stopped working - no cookie was set.

But when I set client explicitly (for both clients I need) it works again:

useGqlToken(newToken, { client: 'default' })
useGqlToken(newToken, { client: 'tenant' })

In past it used just one cookie gql:default, but with this workaround is obviously sets two cookies - gql:default and gql:tenant.

Expected behaviour

Plain useGqlToken(newToken) should work again.

Reproduction

No response

Additional context

No response

Logs

@iBobik iBobik added the bug Something isn't working label Feb 17, 2025
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