authenticated1.0.3

Prevent access to elements in the query when the user is not authenticated

Authenticated

Provides an @authenticated directive, for subgraphs, which prevents access to elements in the query when the user is not authenticated.

# grafbase.toml [extension.authenticated] version = "1.0"

Run the install command before starting the gateway

grafbase extension install
# subgraph schema extend schema @link( url: "https://grafbase.com/extensions/authenticated/1.0.0" import: ["@authenticated"] ) type Query { public: String! mustBeAuthenticated: String! @authenticated }
26 Mar, 2025
Julius de Bruijn
InstallAdd this to your TOML configuration file:
[extensions] authenticated = "1.0.3"