aboutsummaryrefslogtreecommitdiff
path: root/auth
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 /auth
parent13759f7445800856112ad1ed3306b3baa60f73f6 (diff)
fix(auth): Correct interface to load userv0.1.1
Diffstat (limited to 'auth')
-rw-r--r--auth/middlewares.go2
1 files changed, 1 insertions, 1 deletions
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()