Firebase SignInWithPhoneNumber не отправляет OTP на номерJavascript

Форум по Javascript
Ответить
Anonymous
 Firebase SignInWithPhoneNumber не отправляет OTP на номер

Сообщение Anonymous »

У нас есть ионное угловое приложение, а Firebase SigniNwithPhoneNumber работал хорошо. Всегда давая внутреннюю ошибку сервера.
Seince Мы находимся в плане пламени, и выставление счетов включено. и домен также добавлен в список доменов.
Мы также искали, но без успеха.
Также у нас есть включенная авторитетная авторитетная.
также добавила страну, чтобы разрешить список. < /p>
Пожалуйста, сообщите нам о проблеме. встречается.makeCaptcha() {
const component = this;
this.recaptchaVerifier = new firebase.auth.RecaptchaVerifier('recaptcha-container', {
'size': 'invisible',
'callback': (response) => {
console.log(response);
component.captchanotvarified = true;
}
});
this.recaptchaVerifier.render();
}

sendOtpBrowser(phone) {
const component = this;
this.uiElementService.presentLoading('Sending otp');
this.makeCaptcha();
firebase.auth().signInWithPhoneNumber(phone, this.recaptchaVerifier)
.then((confirmationResult) => {
console.log('otp_send_success', confirmationResult);
component.result = confirmationResult;
component.uiElementService.dismissLoading();
component.uiElementService.presentToast('OTP Sent');
if (component.isDemoNumber === 'true') {
component.otp = component.config.demoLoginCredentials.otp;
component.verify();
}
component.otpNotSent = false;
if (component.intervalCalled) {
clearInterval(component.timer);
}
component.createInterval();
})
.catch((error) => {
console.log('otp_send_fail', error);
component.resendCode = true;
component.uiElementService.dismissLoading();
component.uiElementService.presentToast(error.message || 'OTP Sending failed');
});
}


Подробнее здесь: https://stackoverflow.com/questions/797 ... the-number
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Javascript»