Diizzayy / nuxt-graphql-client

⚡️ Minimal GraphQL Client + Code Generation for Nuxt3
https://nuxt-graphql-client.web.app
MIT License
366 stars 44 forks source link

useGqlToken is not defined #421

Open Latex88 opened 1 year ago

Latex88 commented 1 year ago

Environment

Nuxt project info: (copied to clipboard) 1:07:09 PM


Describe the bug

When calling useGqlToken() inside an server environment (e.g. server/api/auth) I get the error "useGqlToken is not defined".

I'm a Nuxt noob and found out that inside server environments auto imports should not work. So how do I import this function?

Expected behaviour

Import useGqlToken() and use it like the auto generated Functions.

Reproduction

No response

Additional context

No response

Logs

No response

sayajin101 commented 1 year ago

I'm having the same issue, a response would be awesome

ak-akimoto-peraichi commented 7 months ago

I have the same problem. I would like your help.

ZackNew commented 2 months ago

Any solution for this issue? @Diizzayy