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:
@@ -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})`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user