JWT Authentication: Use UI token to authenticate Graphene/Django (GraphQL) queries?
问题 I am working on a project with the following architecture: UI: React on client and server-side rendering via a Node server, Apollo Client for GraphQL, API: Django handles GraphQL queries through Graphene. I use Auth0 (JWT based) for my frontend authentication. I would like to use the token I get to authenticate my user in the context of the GraphQL queries API side. [Edit2] To pass the token to my API, I use: const idToken = cookie.load('idToken') || null; networkInterface.use([{