Firebase Phone authentication on Web not working with Firebase custom domain

129 views
Skip to first unread message

Rajesh Mani

unread,
Oct 9, 2017, 11:53:27 PM10/9/17
to Firebase Google Group
Hi,

I am using Firebase phone authentication on Web and when I login via custom domain https://<domainName> I am taken to the phone login screen.
However, when I enter the phone number and press submit, I get an error around not being able to send SMS.

Chrome Console log of the error


The issue doesn't occur when I use the <projectName>.firebaseapp.com that the custom domain is associated with.

Looking for some guidance on if there is any known issue with phone authentication on custom domain or if any tweak needs to be done to the Firebase phone authentication for it to work with custom domain.

Thanks in advance

Bassam

unread,
Oct 10, 2017, 4:58:49 PM10/10/17
to Firebase Google Group
Hey Rajesh, did you add your custom domain to the list of authorized domains in the Firebase Console -> Authentication -> Authorized Domains section?
If not, then the issue is related to that.

Best regards,
Bassam

Rajesh Mani

unread,
Oct 12, 2017, 11:59:23 PM10/12/17
to Firebase Google Group
Yes that fixed the error - I didn't realize there was this step required. Thanks Bassam. 

Rajesh
Reply all
Reply to author
Forward
0 new messages