auth: Add cron to clean old tokens

Rename AuthToken.identifier to label

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-01-24 20:37:04 +01:00 committed by David Mehren
parent 14a4872f49
commit 8f008c7cc5
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
6 changed files with 27 additions and 17 deletions

View file

@ -30,7 +30,7 @@ entity "auth_token"{
*userId : uuid
*keyId: text
*accessToken : text
*identifier: text
*label: text
*createdAt: date
lastUsed: number
validUntil: number