From 5f72b04ef8e84b1c367ca6874519706318e351f5 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 19 Jun 2020 00:35:56 +0100 Subject: Use ErrNotAuthenticated --- graphql/graphqlidentity/errors.go | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 graphql/graphqlidentity/errors.go (limited to 'graphql/graphqlidentity/errors.go') diff --git a/graphql/graphqlidentity/errors.go b/graphql/graphqlidentity/errors.go new file mode 100644 index 00000000..5ec58b32 --- /dev/null +++ b/graphql/graphqlidentity/errors.go @@ -0,0 +1,6 @@ +package graphqlidentity + +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