Investigating using a JWT for Hasura authentication #1530
Labels
backend
Backend related issues
feature request
Feature Requests
Hasura
GraphQL / Hasura related tasks
medium
Medium Priority
refactor
Issues for opportunities to refactor parts of the codebase
What would you like to be added?
Hasura has two modes for authenticating connections. Either it can connect to the backend on each connection and get permission, or the server can generate a JSON Web Token representing the user's role which is reused for each connection without any server interaction.
We are currently authenticating each connection, but the JWT would both be more performant and reliable.
Why is this needed?
I'm frequently (~20% of the time) getting the following error:
The process of an endpoint that is only generating a token would be a simpler interaction that is easier to debug and removed the need for repeated requests.
Additionally, adding another network request for every query can't be helping performance.
The text was updated successfully, but these errors were encountered: