diff --git a/pkg/ext/auth.go b/pkg/ext/auth.go
index b57e86ae552fb056a7b8d3af16fca672e906cd03..304f4ad3fe1d2e9f97f9f930ac1e527c74787c6c 100644
--- a/pkg/ext/auth.go
+++ b/pkg/ext/auth.go
@@ -3,6 +3,7 @@
import (
"context"
"encoding/base64"
+ "errors"
"log/slog"
"net/http"
)
@@ -24,7 +25,9 @@ return func(next http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
cookie, err := r.Cookie("auth")
if err != nil {
- slog.Error("Error loading cookie", "error", err)
+ if !errors.Is(err, http.ErrNoCookie) {
+ slog.Error("Error loading cookie", "error", err)
+ }
next(w, r)
return
}