nuxt-modules / apollo

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

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

Closed naremloa closed 9 months ago

naremloa commented 1 year 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