diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts index 45fa70280..52eecf9ff 100644 --- a/src/auth/auth.service.ts +++ b/src/auth/auth.service.ts @@ -198,9 +198,9 @@ export class AuthService { } toAuthTokenWithSecretDto( - authToken: AuthToken | null | undefined, + authToken: AuthToken, secret: string, - ): AuthTokenWithSecretDto | null { + ): AuthTokenWithSecretDto { const tokenDto = this.toAuthTokenDto(authToken); return { ...tokenDto,