Commit 2248af4
committed
feat: Validate login request to ensure either email or phone is provided
- Enhanced the `verifyLoginRequest` method in `AuthService` to check that at least one of the email or phone fields is populated in the `CompleteLoginRequest`.
- Added error handling to return an `InvalidArgument` status if both fields are empty, improving request validation and user feedback.
Signed-off-by: Christian Melgarejo <cmelgarejo@users.noreply.github.com>1 parent f749753 commit 2248af4
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
168 | 176 | | |
169 | | - | |
170 | | - | |
| 177 | + | |
| 178 | + | |
171 | 179 | | |
172 | 180 | | |
173 | | - | |
| 181 | + | |
174 | 182 | | |
175 | 183 | | |
176 | 184 | | |
| |||
0 commit comments