Add generating dh keys

This commit is contained in:
Jonas Lochmann
2022-09-12 02:00:00 +02:00
parent 1414e41672
commit f725a7bda3
23 changed files with 659 additions and 5 deletions
+9 -1
View File
@@ -1,6 +1,6 @@
/*
* server component for the TimeLimit App
* Copyright (C) 2019 - 2021 Jonas Lochmann
* Copyright (C) 2019 - 2022 Jonas Lochmann
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -71,4 +71,12 @@ async function deleteOldTokens ({ database }: {
transaction
})
})
await database.deviceDhKey.destroy({
where: {
expireAt: {
[Sequelize.Op.lt]: Date.now().toString()
}
}
})
}