feat: refactoring

This commit is contained in:
2025-05-21 21:59:50 +02:00
parent edfa3e63b9
commit d4adc1b538

View File

@ -32,7 +32,7 @@ func AuthMiddleware(next http.Handler) http.Handler {
return return
} }
ctx := context.WithValue(r.Context(), types.UserIdKey, userClaims.UserID) ctx := context.WithValue(r.Context(), types.UserIdKey, userClaims.Subject)
next.ServeHTTP(w, r.WithContext(ctx)) next.ServeHTTP(w, r.WithContext(ctx))
}) })
} }
@ -50,4 +50,3 @@ func WithSkipper(mw func(http.Handler) http.Handler, excludedPaths ...string) fu
}) })
} }
} }