Skip to content

Glossary: GraphQL APIs

requireUser / requireStaff

Also written: requireUser, requireStaff

kc-graph helpers resolvers call first. `requireUser` throws UNAUTHENTICATED if nobody is logged in, and `requireStaff` also throws FORBIDDEN unless the role is staff.

Where the book teaches it

Related terms

Error codesField-level authorization