Remove unnecessary context value call

This commit is contained in:
2024-09-21 18:32:37 +07:00
parent 74147f5079
commit 80941bd3bb

View File

@ -87,7 +87,6 @@ func Auth(next http.HandlerFunc, w http.ResponseWriter, r *http.Request) {
case session.Authorized:
ctx := context.WithValue(r.Context(), "user", user)
req := r.WithContext(ctx)
r.Context().Value("user")
next.ServeHTTP(w, req)
return
case session.Unauthorized: