nuxt-modules / apollo

Nuxt.js module to use Vue-Apollo. The Apollo integration for GraphQL.
https://apollo.nuxtjs.org
MIT License
929 stars 194 forks source link

Set AuthType for the specified client, but it receive null #567

Closed naremloa closed 4 months ago

naremloa commented 7 months ago

Environment

"@nuxtjs/apollo": "5.0.0-alpha.8"

Describe the bug

I tried to set the authType for the specified client. like this

// nuxt.config.ts
{
apollo: {
    clients: {
      default: {
        authType: 'Bearer',
        authHeader: 'Authorization',
        tokenStorage: 'cookie',
        tokenName: 'apollo:default.token',
        httpEndpoint: ...
      },
    },
  },
}

But the final setting I checked is null.

Expected behaviour

It should be the value what i set in the config file

Reproduction

No response

Additional context

No response

Logs

No response