Graphql 如何在nuxt/apollo中传递动态令牌?

Graphql 如何在nuxt/apollo中传递动态令牌?,graphql,apollo,nuxt.js,vue-apollo,Graphql,Apollo,Nuxt.js,Vue Apollo,我想使用@nuxt/apollo向HTTP请求的头传递一个动态令牌 我已经试过了: //./numxt.config.js 阿波罗:{ includeNodeModules: true, clientConfigs: { default: { httpEndpoint: 'http://localhost:8000/graph/', }, interno: { httpEndpoint: 'http://localhost:8000/graphiq

我想使用@nuxt/apollo向HTTP请求的头传递一个动态令牌

我已经试过了:

//./numxt.config.js 阿波罗:{

includeNodeModules: true,
clientConfigs: {
     default: {
     httpEndpoint: 'http://localhost:8000/graph/',
    },
    interno: {
      httpEndpoint: 'http://localhost:8000/graphiql/',
      httpLinkOptions: {
        headers:{
            Authorization: 'JWT token_static',
        }
      }
    },
  }
},
它工作,但我需要我的令牌是动态的