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 is not defined #421

Open
Latex88 opened this issue Nov 18, 2023 · 2 comments
Open

useGqlToken is not defined #421

Latex88 opened this issue Nov 18, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Latex88
Copy link

Latex88 commented Nov 18, 2023

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: [email protected]
  • Builder: -
  • User Config: extends, modules, css, app, devtools, devServer, multiCache, experimental, colorMode, runtimeConfig, graphql-client, $development
  • Runtime Modules: [email protected], [email protected], @nuxt/[email protected]
  • 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

@Latex88 Latex88 added the bug Something isn't working label Nov 18, 2023
@sayajin101
Copy link

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

@ak-akimoto-peraichi
Copy link

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

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

3 participants