aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'graphql/resolvers/errors.go')
-rw-r--r--graphql/resolvers/errors.go6
1 files changed, 6 insertions, 0 deletions
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")