auth-backend: make DatabaseKeyStore only return valid keys and remove expired ones

This commit is contained in:
Patrik Oldsberg
2020-06-19 15:24:29 +02:00
parent 90cc2ca615
commit adc574ee33
3 changed files with 58 additions and 4 deletions
@@ -30,7 +30,7 @@ exports.up = async function up(knex) {
.notNullable()
.comment('ID of the signing key');
table
.timestamp('created_at')
.timestamp('created_at', { useTz: false, precision: 0 })
.notNullable()
.defaultTo(knex.fn.now())
.comment('The creation time of the key');