I disagree. That would depend how you implemented it. It's not impossible to check if a token has passed its timespan, and if it has, it would and should be considered invalid. .TokenLifespan = TimeSpan.FromHours(6);
You also won't be able to write the logic for the later without a tokenlifespan being set.
您也不会在登陆页面之前检查令牌是否已过期。通常,登录页面将确定令牌是无效的还是过期的。
提出的问题荒唐可笑。没有代码可显示,响应将变得模糊。
Doing the research shows many implementations when searching c# using "TokenLifespan" to check if token expired
online.