Я пытаюсь войти в firebase, но сразу после завершения аутентификации консоль отображает эту ошибку
во всех возможных решениях I ve found they tell to change the database rules in my firebase console. I
я много раз менял правила без решения
Это текущий код правил в моей консоли
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
И это код того, как я делаю вход в систему
import React, {useRef} from 'react';
import { getFirebase } from 'react-redux-firebase';
const Auth = () => {
const emailRef = useRef('')
const passwordRef = useRef('')
const handleSubmit = e => {
e.preventDefault()
const firebase = getFirebase();
firebase.login({
email : emailRef.current.value,
password : passwordRef.current.value
}).then(res => console.log('se autentifico correctamente')).catch(error => console.log(error))
}