You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
== used instead of .equals() for String comparison #1027
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);
}
Activity
google-oss-bot commentedon Oct 24, 2024
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
yanikapitanov commentedon Jan 24, 2025
Can I take this issue? I already have the code
shubhi510 commentedon Jan 24, 2025