aboutsummaryrefslogtreecommitdiffstats
path: root/api/auth/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/auth/errors.go')
-rw-r--r--api/auth/errors.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/api/auth/errors.go b/api/auth/errors.go
new file mode 100644
index 00000000..9675afbf
--- /dev/null
+++ b/api/auth/errors.go
@@ -0,0 +1,6 @@
+package auth
+
+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")