graphdoc
graphdoc copied to clipboard
JWT issue
Hi, I'm working on a CRUD GraphQL/Apollo API and trying to make JWT and graphdoc working together.
I tried to do like #52 issue :
"graphdoc": { "endpoint": "http://localhost:4000/graphql", "header":{"AUTH-TOKEN":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6IkJsdWVrYW5nbyIsImlkIjoiYmx1ZUlEIiwiaWF0IjoxNTYyNjY3MDg1fQ.onVCYnPwX11P_0ZvxjqKgj8KNPxrWxhNJxy_WsoK5o4"}, "output": "./doc/schema" },
But.. I received this as soon as I "graphdoc -f"
✗ Unexpected HTTP Status Code 400 (Bad Request) from: http://localhost:4000/graphql
?
Bad request, what does it mean ? Before I had the JWT I always did this cmd..
Thanks for your help, KT.