Skip to content

useGqlToken without options stopped working #613

@iBobik

Description

@iBobik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions