diff --git a/apps/server/src/core/auth/services/auth.service.ts b/apps/server/src/core/auth/services/auth.service.ts index bd61adcb..19f02230 100644 --- a/apps/server/src/core/auth/services/auth.service.ts +++ b/apps/server/src/core/auth/services/auth.service.ts @@ -49,7 +49,7 @@ export class AuthService { const isPasswordMatch = await comparePasswordHash( loginDto.password, - user.password, + user?.password, ); if (!user || !isPasswordMatch || user.deletedAt) {