aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2023-10-24 08:05:56 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2023-10-24 08:05:56 +0200
commita4f3f4ddfafe102232d3341cd432219a40a0d64e (patch)
tree21753b09ac687217913ebddaf03ff8c0b02cc217
parent13759f7445800856112ad1ed3306b3baa60f73f6 (diff)
fix(auth): Correct interface to load userv0.1.1
-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()