summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--auth/middlewares.go2
2 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index e69de29..2ddc131 100644
--- a/README.md
+++ b/README.md
@@ -0,0 +1,3 @@
+## TODO
+
+- Repair gettext
diff --git a/auth/middlewares.go b/auth/middlewares.go
index 433cbd2..7f90677 100644
--- a/auth/middlewares.go
+++ b/auth/middlewares.go
@@ -28,7 +28,7 @@ func Unauthorized(w http.ResponseWriter, err error) {
}
}
-func CookieAuthMiddleware(loadUser func(context.Context, ...any) (any, error), config AuthConfig) func(http.Handler) http.Handler {
+func CookieAuthMiddleware(loadUser func(context.Context, core.ID) (any, error), config AuthConfig) func(http.Handler) http.Handler {
return func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
ctx := r.Context()