Replace @nda directive with resolver helper

Export and request-access already know visibility and
auth; a shared requireCompletedNDA call keeps NDA
enforcement there and drops GraphQL PUBLIC probing.

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-07-30 16:56:55 +02:00
parent 93818d8292
commit 34fa2356e1
6 changed files with 110 additions and 253 deletions

View File

@@ -65,7 +65,6 @@ func NewGraphQLHandler(
sessionCookie: authn.NewCookie(&cookieConfig),
},
Directives: schema.DirectiveRoot{
Nda: newNDADirective(logger, visitorSvc, esignSvc),
Authentication: authentication.Directive,
SessionOnly: session.Directive,
},