diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts index 833c24232..90fe642a7 100644 --- a/src/auth/auth.service.ts +++ b/src/auth/auth.service.ts @@ -173,14 +173,7 @@ export class AuthService { await this.authTokenRepository.remove(token); } - toAuthTokenDto(authToken: AuthToken): AuthTokenDto | null { - if (!authToken) { - this.logger.warn( - `Recieved ${String(authToken)} argument!`, - 'toAuthTokenDto', - ); - return null; - } + toAuthTokenDto(authToken: AuthToken): AuthTokenDto { const tokenDto: AuthTokenDto = { lastUsed: null, validUntil: null,