Diizzayy / nuxt-graphql-client

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

useGqlToken is not defined #421

Open Latex88 opened 7 months ago

Latex88 commented 7 months 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 7 months ago

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

ak-akimoto-peraichi commented 2 months ago

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