diff options
author | Luke Granger-Brown <git@lukegb.com> | 2020-06-19 00:35:56 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-06-27 23:01:10 +0200 |
commit | 5f72b04ef8e84b1c367ca6874519706318e351f5 (patch) | |
tree | 6f73279d05130d3d6d83de1dad3a5b4ac25be080 /graphql/graphqlidentity/errors.go | |
parent | e5a316e40c377a8563e92f62b0773ed34321a91a (diff) | |
download | git-bug-5f72b04ef8e84b1c367ca6874519706318e351f5.tar.gz |
Use ErrNotAuthenticated
Diffstat (limited to 'graphql/graphqlidentity/errors.go')
-rw-r--r-- | graphql/graphqlidentity/errors.go | 6 |
1 files changed, 6 insertions, 0 deletions
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") |