chore: remove unused command-code auth cleanup export (#5371)

Integrated into release/v3.8.41 — dead-code removal (typecheck:core EXIT 0, 70 affected tests green, fabricated-docs clean). Thanks @JxnLexn.
This commit is contained in:
Jan Leon
2026-06-29 17:18:43 +02:00
committed by GitHub
parent 7a8cdf2a90
commit 6a5971663a
2 changed files with 66 additions and 11 deletions

View File

@@ -207,14 +207,3 @@ export function consumeCommandCodeAuthSecret(
};
})() as ConsumedCommandCodeAuthSecret | null;
}
export function cleanupExpiredCommandCodeAuthSessions(now = nowIso()): number {
const result = db()
.prepare(
`UPDATE command_code_auth_sessions
SET status = 'expired', updated_at = ?
WHERE status IN ('pending', 'received') AND expires_at <= ?`
)
.run(now, now);
return result.changes ?? 0;
}