See: https://hasura.io/  We could make a middleware like this: https://github.com/hasura/graphql-engine/blob/71ae144aa623c156064ffe21eb38020ccf315a7a/community/sample-apps/vuejs-auth0-graphql/app/src/auth/authService.js