Equipment is kész.

This commit is contained in:
2025-03-20 13:12:05 +01:00
parent bd60138a89
commit ae7ba2342e
19 changed files with 639 additions and 79 deletions
@@ -25,7 +25,14 @@ namespace WorkFlowCheck.Web.Middleware
{
context.User = new ClaimsPrincipal(new ClaimsIdentity(claims, "jwt"));
}
else
{
// Ha token van, de invalid, töröljük a cookiet
if (!string.IsNullOrEmpty(token))
{
context.Response.Cookies.Delete("AuthToken");
}
}
await _next(context);
}
private bool ValidateToken(string token, out Claim[] claims)