修正 老令牌有效 查询刷新的时间必须是当前时间一分钟内

This commit is contained in:
wkj 2024-05-15 10:36:49 +08:00
parent 0a1e187756
commit 91a191158f
3 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ export class BackendRuntimeContext extends BRC {
{
oldValue: tokenValue,
refreshedAt: {
$gte: Date.now() - 60 * 1000,
$lte: Date.now() - 60 * 1000,
},
},
],

View File

@ -73,7 +73,7 @@ class BackendRuntimeContext extends oak_frontend_base_1.BackendRuntimeContext {
{
oldValue: tokenValue,
refreshedAt: {
$gte: Date.now() - 60 * 1000,
$lte: Date.now() - 60 * 1000,
},
},
],

View File

@ -94,7 +94,7 @@ export abstract class BackendRuntimeContext<ED extends EntityDict & BaseEntityDi
{
oldValue: tokenValue,
refreshedAt: {
$gte: Date.now() - 60 * 1000,
$lte: Date.now() - 60 * 1000,
},
},
],