graphql-kit / graphql-voyager

🛰️ Represent any GraphQL API as an interactive graph
https://graphql-kit.com/graphql-voyager/
MIT License
7.76k stars 514 forks source link

How do I deal with unauthorized token issue #144

Open dsl2022 opened 4 years ago

dsl2022 commented 4 years ago

I use Express and followed the install guide, however, the api I am trying to use is from company and is protected, how do I deal with the token issue?

{"errors":[{"message":"Unable to validate user. UnauthorizedError: No authorization token was found"}]}

IvanGoncharov commented 4 years ago

If you need to pass the token as a header please use headersJS: https://github.com/APIs-guru/graphql-voyager#properties-1