Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Minor fix

supportbf46479f514e
diff --git a/src/Web/Grand.Web.Common/WorkContext.cs b/src/Web/Grand.Web.Common/WorkContext.cs
index 25c0d0f53..6d1813d52 100644
--- a/src/Web/Grand.Web.Common/WorkContext.cs
+++ b/src/Web/Grand.Web.Common/WorkContext.cs
@@ -226,7 +226,7 @@ namespace Grand.Web.Common
}
//try to get api user
- customer = await _apiAuthenticationService.GetAuthenticatedCustomer();
+ customer = await _apiAuthenticationService.GetAuthenticatedCustomer(_httpContextAccessor.HttpContext);
//if customer comes from api, doesn't need to create cookies
if (customer != null)
{