From 94df27709cf195f250af17771fdafaf2804b97d6 Mon Sep 17 00:00:00 2001 From: Sai Nageswar S Date: Tue, 10 Feb 2026 02:16:15 +0000 Subject: [PATCH] Simplifying auth middleware for http api --- auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/auth.go b/auth/auth.go index c7f918b..419b93e 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -43,7 +43,7 @@ func VerifyTokenGrpcMiddleware() grpc_auth.AuthFunc { } } -func VerifyTokenHttpMiddleware(next http.Handler) http.Handler { +func VerifyTokenHttpMiddleware(next http.HandlerFunc) http.HandlerFunc { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { authHeader := r.Header.Get("Authorization") if authHeader == "" {