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
parent b896f954b9
commit d18d23cb16
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),
);