Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTP is correct and the time is not expired. It still shows the code has expired #25

Open
hacker-0123 opened this issue Apr 20, 2020 · 22 comments

Comments

@hacker-0123
Copy link

  1. Before entering the OPT the message shows "Verification failed. Please try again"

  2. Then after entering the OTP, message shows "Wrong OTP entered"

Execption I get at console- com.google.firebase.auth.FirebaseAuthInvalidCredentialsException: The sms code has expired. Please re-send the verification code to try again. -ERROR_SESSION_EXPIRED

@brianssendagire
Copy link

I'm having a similar problem. Did you find a solution for this?

@Hoangtho11188
Copy link

As my knowledge, you should enable phone authentication on Firebase first.

@Biplovkumar
Copy link

Also plz Setup of cloud function then set
declare type SUPPORTED_REGIONS = "us-central1" | "us-east1" | "us-east4" | "europe-west1" | "europe-west2" | "asia-east2" | "asia-northeast1";
in gradle.properties.

@hacker-0123
Copy link
Author

@Biplovkumar yeah given in the build cofig but still same. I would be grateful if you can send me your backend firebase config. Details in my mail address.

@vishaljoseph
Copy link

Hi, I'm having a similar issue. Were you guys able to solve it?

@hacker-0123
Copy link
Author

hacker-0123 commented May 4, 2020 via email

@vishaljoseph
Copy link

I have set up cloud functions as elaborated in the README and they have even appeared on my firebase dashboard. It still doesn't seem to be working. Do I have to include any particular regions in my config.ts file? Any idea what I could have possibly missed?

@hacker-0123
Copy link
Author

hacker-0123 commented May 4, 2020 via email

@vishaljoseph
Copy link

The logs:

D/OnboardingActivity: NOT-IDLE signInWithCredential:success
W/e.opentrace.st: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setAlpnProtocols([B)V (light greylist, reflection)
W/e.opentrace.st: Accessing hidden method Ljava/security/spec/ECParameterSpec;->setCurveName(Ljava/lang/String;)V (light greylist, reflection)
W/e.opentrace.st: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->getAlpnSelectedProtocol()[B (light greylist, reflection)
D/TempIDManager: NOT-IDLE [TempID] Error getting Temporary IDs
D/OnboardingActivity: NOT-IDLE Retrieved Temporary ID successfully
W/Utils: NOT-IDLE get handshake pin (failure): NOT_FOUND
E/OnboardingActivity: NOT-IDLE Failed to retrieve HandShakePin NOT_FOUND
I/PhoneAuthProvider: Sms auto retrieval timed-out.

Dashboard:

cloudfunc

@hacker-0123
Copy link
Author

hacker-0123 commented May 4, 2020 via email

@vishaljoseph
Copy link

I had mistakenly put in a different region in the code and changing it seems to have solved the problem. Thanks a lot!

@vishaljoseph
Copy link

If I'm not wrong, the database location of my GCP Datastore should be in the same region as the above right?

@alexissinglaire
Copy link

If I'm not wrong, the database location of my GCP Datastore should be in the same region as the above right?

@vishaljoseph : hi, do you have any issue in the app operation? if yes, maybe you can elaborate the detail here so we can help you to find the solution.

@Norbert-Mwebaze
Copy link

I keep on running into this issue is there a fix to it...... Thanks

@Norbert-Mwebaze
Copy link

OTP comes through but i get the message "Verification failed. Please try it again"

@capnmctavish
Copy link

Same issue, correct otp is entered still verification fails, timeout has also not occured.
But it succeeds when using the hardcoded numbers with preset OTP seamlessly

@purvajg
Copy link

purvajg commented Nov 30, 2020

did anyone find a fix for this?

@sanjeev-kumar-vs
Copy link

I am having the same issue. When user request for Otp then OTP will automatically read and trying to verifying with the firebase then it shows The sms verification code is expired and when user enter manually then it worked and user can logged in.

@ahmad-alk
Copy link

Same issue here ☹️☹️

@ijunaidkhan
Copy link

ijunaidkhan commented May 23, 2022

@696558586537
Copy link

Lebanon

@696558586537
Copy link

pquxew@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests