faizalshap / react-native-otp-verify

React native sms verification without additional permissions
MIT License
239 stars 92 forks source link

How to pass the hash to Firebase methods? #85

Closed Bilal-Abdeen closed 1 year ago

Bilal-Abdeen commented 1 year ago

I use Firebase authentication. Firebase generates the OTP and sends it to the user's device. How can I pass the hash value generated by react-native-otp-verify to Firebase? Following is the Firebase method I use.

firebase.auth().signInWithPhoneNumber(phoneNo).then();
faizalshap commented 1 year ago

Hi Bilal, Firebase already has this implemented internally so you don't need this library.

On Mon, Feb 27, 2023 at 7:25 AM Bilal Abdeen @.***> wrote:

I use Firebase authentication. Firebase generates the OTP and sends it to the user's device. How can I pass the hash value generated by react-native-otp-verify to Firebase? Following is the Firebase method I use.

firebase.auth().signInWithPhoneNumber(phoneNo).then();

— Reply to this email directly, view it on GitHub https://github.com/faizalshap/react-native-otp-verify/issues/85, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4BJUJT7L42HUVUYOVCPVLWZQCS5ANCNFSM6AAAAAAVI2CEXI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Bilal-Abdeen commented 1 year ago

@faizalshap Thank you very much for the super quick reply. I am struggling to get it to work. I have just asked a question on react-native-firebase GitHub page https://github.com/invertase/react-native-firebase/discussions/6950. Hopefully, someone would help me there.

faizalshap commented 1 year ago

ok cool