Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Authentication iOS 12 invalid token

I have an App that makes use of Firebase Authentication using phone SMS verification and recaptcha (no APNS)

The App works fine with the Authentication process if you are using iOS 11.4.1

However, if you are on iOS 12, then the Authentication process leads to an invalid token message

Error Domain=FIRAuthErrorDomain Code=17048 "Invalid token." UserInfo={NSLocalizedDescription=Invalid token., error_name=INVALID_APP_CREDENTIAL}

currently using latest firebase ios SDK 5.9.0 latest version of xcode iOS 12 latest Mac OS Mojave 10.14

I saw an earlier issue in June 2018 ( 3 months ago ) but not sure if it relates to our project https://github.com/firebase/firebase-js-sdk/issues/916

https://github.com/firebase/firebase-ios-sdk

Is there a solution around this or is this a Firebase iOS SDK bug?

like image 311
user647630 Avatar asked Sep 28 '18 03:09

user647630


Video Answer


1 Answers

Same Here! I had the exact same problem, turned out that I forgot to set the Identifier to Client in the "URL Types" in the Info of the project.

enter image description here

Hopefully it would work for you.

like image 58
sajede Nouri Avatar answered Oct 12 '22 14:10

sajede Nouri