How can I make the Firebase OTP return the Sms CodeSent so that I use it for verification other than Sign in? #8437
Unanswered
EidarousDev
asked this question in
Q&A
Replies: 1 comment
-
i belive you can't , this is to precent abuse and for security reasons |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The following firebase function sends the OTP code to the phone number.
Problem is..
_onVerificationCompleted
gets only invoked when the phone number is on the device that is sending the request (SIM card). What if I need to know the sent otp code when the_onVerificationCompleted
method will never get called as it's a different device phone number? I triedPhoneAuthProvider.credential(verificationId: verification, smsCode: enteredCode);
But this method's return type isPhoneAuthCredential
, which is only used when trying to signin/login the user.I just need to verify the entered code == the smsCode without signing in. Any help would be really appreciated!
Beta Was this translation helpful? Give feedback.
All reactions