useGqlToken is not defined
Opened this issue · 2 comments
Environment
Nuxt project info: (copied to clipboard) 1:07:09 PM
- Operating System: Darwin
- Node Version: v21.2.0
- Nuxt Version: 3.8.1
- CLI Version: 3.9.1
- Nitro Version: 2.7.2
- Package Manager: npm@10.2.3
- Builder: -
- User Config: extends, modules, css, app, devtools, devServer, multiCache, experimental, colorMode, runtimeConfig, graphql-client, $development
- Runtime Modules: nuxt-graphql-client@0.2.31, nuxt-multi-cache@3.1.1, @nuxt/ui@2.10.0
- Build Modules: -
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
I'm having the same issue, a response would be awesome
I have the same problem.
I would like your help.