fix: services use the new typings from create methods

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-09-25 11:52:42 +02:00 committed by David Mehren
parent d0b8e4cd36
commit 8cda5f99fb
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
4 changed files with 15 additions and 11 deletions

View file

@ -79,17 +79,17 @@ export class AuthService {
new Date().getTime() + 2 * 365 * 24 * 60 * 60 * 1000;
if (validUntil === 0 || validUntil > maximumTokenValidity) {
token = AuthToken.create(
keyId,
user,
identifier,
keyId,
accessToken,
new Date(maximumTokenValidity),
);
} else {
token = AuthToken.create(
keyId,
user,
identifier,
keyId,
accessToken,
new Date(validUntil),
);