Это угловое веб-приложение.
Добавлен снимок экрана со страницей разрешений
Я пытаюсь аутентифицировать мобильный телефон с помощью firebase.
В моей консоли firebase>Аутентификация> Метод входа, я включил телефон и сохранил его.
Но когда я пытаюсь войти в систему, я получаю сообщение об ошибке, сообщающее, что auth/operation-not-allowed
sendLoginCode() {
const appVerifier = this.windowRef.recaptchaVerifier;
const num = this.firstFormGroup.value.mobileNo
console.log('num',num);
firebase.auth().signInWithPhoneNumber(num, appVerifier)
.then(result => {
this.windowRef.confirmationResult = result;
})
.catch(error => console.log(error));
}
verifyLoginCode() {
this.windowRef.confirmationResult
.confirm(this.verificationCode)
.then(result => {
this.user = result.user;
console.log('Login Successfull')
})
.catch(error => console.log(error, "Incorrect code entered?"));
}
