tru-ID / firebase-phone-auth-sim-swap-detection-android

SIM Swap Detection with Firebase Phone Auth Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect SIM change detection logic

leggetter opened this issue · comments

if(simCheckResult.no_sim_change){
    renderMessage("SIM Changed Recently. Cannot Proceed 😥", "SIM-Changed")
    setUIStatus(SubmitHandler, phoneInput, true);
    return@launch
}

no_sim_change means the SIM hasn't changed recently yet the rendered messages says the SIM has changed.

simCheckResult.no_sim_change should be !simCheckResult.no_sim_change or simCheckResult.no_sim_change == false.

where is this ? main-2 branch ?

We only have main and starter-files branches in this repo. It's main where I see the problem.