This commit is contained in:
Pascal Fischer 2023-03-30 17:46:21 +02:00
parent 454240ca05
commit e08af7fcdf

View File

@ -100,7 +100,7 @@ func (m *AuthMiddleware) CheckJWTFromRequest(w http.ResponseWriter, r *http.Requ
// If we get here, everything worked and we can set the
// user property in context.
newRequest := r.WithContext(context.WithValue(r.Context(), string(userProperty), validatedToken)) // nolint
newRequest := r.WithContext(context.WithValue(r.Context(), userProperty, validatedToken)) // nolint
// Update the current request with the new context information.
*r = *newRequest
return nil