https://i.stack.imgur.com/DdUGj.png
db.collection('User_Info').where("User_Name", "==", "Sam").where("PASSWORD", "==", "c2FtMTIzQA==").get().then(snapshot => {
if(snapshot.docs.length > 0 ){
debugger;
alert("Login Successful.");
snapshot.docs.forEach(doc => {
var text = doc.data().name;
var value = doc.id;
console.log("First Log Data" + doc.data());
});
}
});
This code snippet is designed to verify the username and password in the User_Info table of my Firebase Firestore database.
I attempted to debug the code, but unfortunately, the debugger seems ineffective as it promptly exits the code block without proper execution.
I am seeking assistance to identify the main issue here. If you have proficiency in Firebase compound queries, your insights would be greatly appreciated.