Files
QYZH.InteractiveMagazine/QYZH.InteractiveMagazine.Infrastructure/Middleware/JwtAutoRefreshMiddleware.cs

22 lines
489 B
C#
Raw Normal View History

using Microsoft.AspNetCore.Http;
namespace QYZH.InteractiveMagazine.Infrastructure.Middleware;
/// <summary>
/// 保留兼容的JWT自动刷新中间件实际刷新在认证成功后执行。
/// </summary>
public class JwtAutoRefreshMiddleware
{
private readonly RequestDelegate _next;
public JwtAutoRefreshMiddleware(RequestDelegate next)
{
_next = next;
}
public async Task InvokeAsync(HttpContext context)
{
await _next(context);
}
}