fix: return JSON body from send-otp endpoint

Flutter client calls jsonDecode on response body — empty void response
throws FormatException even when SMS was sent successfully.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-06-26 22:11:29 -05:00
co-authored by Claude Sonnet 4.6
parent a067e5d260
commit 5c740420e9
+3 -2
View File
@@ -55,8 +55,9 @@ export class AuthController {
} }
@Post('send-otp') @Post('send-otp')
sendOtp(@Body() dto: SendOtpDto) { async sendOtp(@Body() dto: SendOtpDto) {
return this.auth.sendPhoneOtp(dto.phone); await this.auth.sendPhoneOtp(dto.phone);
return { ok: true };
} }
@Post('phone') @Post('phone')