Currently we are using "==" for string comparison . == compares the reference values, so if two variables reference different objects, they will not be equal using == . This can cause potential bugs while using the sdk
Relevant Code:
snipped from AbstractFirebaseAuth : 603
if (providerId == "phone") {
return this.getUserByPhoneNumberOp(uid);
} else if (providerId == "email") {
return this.getUserByEmailOp(uid);
}
solution:
if ("phone".equals(providerId)) {
return this.getUserByPhoneNumberOp(uid);
} else if ( "email".equals(providerId)) {
return this.getUserByEmailOp(uid);
}
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
Currently we are using "==" for string comparison . == compares the reference values, so if two variables reference different objects, they will not be equal using == . This can cause potential bugs while using the sdk
Relevant Code:
snipped from AbstractFirebaseAuth : 603 if (providerId == "phone") { return this.getUserByPhoneNumberOp(uid); } else if (providerId == "email") { return this.getUserByEmailOp(uid); }