Verifying Phone Numbers with Firebase Phone Authentication on Your Backend for FREE*
There’ll come a time where you will need your app users to validate their phone number when performing certain tasks on your app. The most common solution is to subscribe to a SMS service provider, and build your own SMS verification system. There is so much that needs to be done for the sake of just verifying a phone number! Alternatively, you could use Firebase’s Phone Authentication offering which allows you to login into your app by sending a verification code to your phone via SMS, for FREE*
*free - first 10k verifications/month.
But wait! I don’t want to log into my app with Firebase Phone Authentication. I just want to verify my users phone number! I already have a login system in place!
What if I told you that you can in fact use Firebase Phone Authentication as a phone number verification service! The Firebase Phone Authentication documentation only guides you how to setup phone auth on the client side,but not using it as a phone verification mechanism.
Heres how you can in fact use it on the backend!!
You won’t be able to use the Firebase SDKs on the backend though, but there is still a glimmer of hope to get it working!