I have a backend server running with golang and graphql. Anyone who connects to this server can currently access all graphql features and services if they have a valid Bearer (JWT ). I would like for a certain group of users, certain services to be inaccessible and that they can no longer see the schema on graphiql. I can already reject their requests by checking their token but I can't find a solution for the graphiql schema. Do you have a solution or a reference that I could take as an example?
GOLANG : 1.17 GRAPHQL PACKAGE :
"github.com/graph-gophers/graphql-go"
I found this article interesting THIS but it didn't solve my problems.