Switch OTP SMS to 0098 SOAP API because link endpoint returns HTTP 500

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-24 18:27:49 +03:30
co-authored by Cursor
parent 58dde62f04
commit 1da070969e
4 changed files with 217 additions and 23 deletions
+4 -4
View File
@@ -98,13 +98,13 @@ export class AuthService {
'SMS is not configured. Set SMS_USERNAME, SMS_PASSWORD (or SMS_API_KEY), and SMS_SENDER.',
);
}
const sent = await this.sms.sendOtpSms(mobile, code);
if (!sent) {
const result = await this.sms.sendOtpSmsDetailed(mobile, code);
if (!result.ok) {
this.logger.warn(
`OTP SMS failed for ${this.maskMobile(mobile)}`,
`OTP SMS failed for ${this.maskMobile(mobile)} transport=${result.transport} reason=${result.reason}`,
);
throw new ServiceUnavailableException(
'Could not send SMS. Please try again later.',
`Could not send SMS. Please try again later. (${result.reason})`,
);
}
}