diff options
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | auth/middlewares.go | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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() |
