Skip to content

Commit b0b494c

Browse files
committed
fix(plugin-auth): type the switch judgement's engine options
Claude-Session: https://claude.ai/code/session_01Q4EjjRhUZjdy8VXs6Kkur2 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6b87c7c commit b0b494c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/plugins/plugin-auth/src/auth-manager.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6272,7 +6272,7 @@ export class AuthManager {
62726272
where: { id: sessionId },
62736273
fields: ['id', 'created_at', 'last_activity_at', 'revoked_at'],
62746274
context: SYSTEM_CTX,
6275-
} as any);
6275+
});
62766276
} catch {
62776277
return 'admitted';
62786278
}
@@ -6285,7 +6285,7 @@ export class AuthManager {
62856285
if (!reason && limits.idleMinutes > 0 && last
62866286
&& now - new Date(last).getTime() > limits.idleMinutes * 60_000) reason = 'idle_timeout';
62876287
if (!reason) return 'admitted';
6288-
await (engine as any).update(
6288+
await engine.update(
62896289
'sys_session',
62906290
{ id: sessionId, expires_at: new Date(now - 1000), revoked_at: new Date(now), revoke_reason: reason },
62916291
{ context: SYSTEM_CTX },

0 commit comments

Comments
 (0)