Ensure optional properties of AuthTokenDto are initialized

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-04-29 21:14:09 +02:00
parent 098ebd0445
commit 0944f07834
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 3 additions and 0 deletions

View file

@ -64,6 +64,7 @@ export class AuthToken {
newToken.accessTokenHash = accessToken;
newToken.createdAt = new Date();
newToken.validUntil = validUntil;
newToken.lastUsed = null;
return newToken;
}
}