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

Remove authType in nuxt.config #448

Closed
alessioraggioli opened this issue Nov 10, 2022 · 4 comments
Closed

Remove authType in nuxt.config #448

alessioraggioli opened this issue Nov 10, 2022 · 4 comments
Assignees
Labels

Comments

@alessioraggioli
Copy link

Environment

"@nuxtjs/apollo": "^5.0.0-alpha.3"

Describe the bug

Hi, I tried to remove the default "Bearer" authType, reading the documentation here:
https://apollo.nuxtjs.org/getting-started/configuration#authtype
apollo: { clients: { default: { httpEndpoint: process.env.GRAPHQL_URL, authType: "", } } }

But seems not working, in the request headers i always get
Authorization: Bearer

Expected behaviour

I need to remove the default bearer value, keep just the token.

Reproduction

No response

Additional context

No response

Logs

No response

@Diizzayy
Copy link
Collaborator

@alessioraggioli try setting authType to null

@alessioraggioli
Copy link
Author

Tried

apollo: {
    clients: {
      default: {
        httpEndpoint: process.env.GRAPHQL_URL,
        authType: null,
      }
    }
  }

It set me the default "Bearer" in network auth..

@Diizzayy Diizzayy self-assigned this Nov 10, 2022
@alessioraggioli
Copy link
Author

@Diizzayy how can i get the fix? just reinstalling yarn package?

@Diizzayy
Copy link
Collaborator

Diizzayy commented Nov 10, 2022

how can i get the fix? just reinstalling yarn package?

@alessioraggioli Indeed, update to v5.0.0-alpha.4 for the fix to take effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants