From e5a316e40c377a8563e92f62b0773ed34321a91a Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 19 Jun 2020 00:26:47 +0100 Subject: Pull out context-stuff from identity into graphqlidentity package --- graphql/resolvers/errors.go | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 graphql/resolvers/errors.go (limited to 'graphql/resolvers/errors.go') diff --git a/graphql/resolvers/errors.go b/graphql/resolvers/errors.go new file mode 100644 index 00000000..2a8024e0 --- /dev/null +++ b/graphql/resolvers/errors.go @@ -0,0 +1,6 @@ +package resolvers + +import "errors" + +// ErrNotAuthenticated is returned to the client if the user requests an action requiring authentication, and they are not authenticated. +var ErrNotAuthenticated = errors.New("not authenticated or read-only") -- cgit