oprava tokenu

This commit is contained in:
Ondur
2026-11-18 17:26:16 +01:00
parent 217adaba63
commit 26c82eca08
3 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,3 @@
using Microsoft.AspNetCore.Components.Authorization; using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
@@ -101,6 +100,9 @@ app.Use(async (context, next) =>
}); });
} }
// Token musí být dostupný i v aktuálním requestu
context.Items["CartToken"] = token;
await next(); await next();
}); });