deleteExpiredChallenges method
Removes all challenges from the database which are older than the challenge lifetime.
Implementation
Future<void> deleteExpiredChallenges(final Session session) async {
await PasskeyChallenge.db.deleteWhere(
session,
where: (final t) =>
t.createdAt < clock.now().subtract(_challengeLifetime),
);
}