I am trying to check if an User is present in my database by email, are there any firebase rules to do that? My User:
public class User {
private String email;
private String password;
private boolean hasRightToDrive;
}
With this firebase rules I am not able to add users:
{
"rules": {
".read": "now < 1640815200000", // 2021-12-30
".write": "!data.exists()", // 2021-12-30
}
}
with this I am still able to add multiple users with same mail
{
"rules": {
".read": "now < 1640815200000", // 2021-12-30
".write": "data.exists()", // 2021-12-30
}
}