diff --git a/app/features/auth/repository.py b/app/features/auth/repository.py index 1693b31..475d564 100644 --- a/app/features/auth/repository.py +++ b/app/features/auth/repository.py @@ -42,10 +42,9 @@ class AuthRepository: self, phone_number: str, ) -> AppUser | None: - # Preserves the existing auth API's LIKE lookup semantics. result = await self._session.execute( select(AppUser) - .where(AppUser.phone_number.like(f"%{phone_number}%")) + .where(AppUser.phone_number == phone_number) .order_by(AppUser.id.asc()) .limit(1) )