diff options
Diffstat (limited to 'auth')
| -rw-r--r-- | auth/middlewares.go | 2 |
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() |
