Zendro-dev / graphql-server

Skeleton NodeJS project for a graphQL server.
GNU General Public License v3.0
0 stars 1 forks source link

Enable GraphiQL to communicate with graphql-server using login #11

Closed asishallab closed 4 years ago

asishallab commented 5 years ago

graphql-server can be started with acl. Using this a login is required and the GraphiQL interface needs to login and send a JWT with each request.

See the official documentation on how to do this with a simple React component.

No tests needed for this Issue.

Expected work time: 4h

asishallab commented 5 years ago

Implement this changed version of GraphiQL as a separate single page application completely independent from the other "skeleton" or "code generator" sub-projects.

This SPA should upon receiving the very first request look for a JWT in that request's header and store it for later usage.

vsuaste commented 4 years ago

Done. See repository: React GraphiQL.