-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Xcode 14 - iOS 16Issues and PRs related to Xcode 14, iOS 16, and associated OSesIssues and PRs related to Xcode 14, iOS 16, and associated OSesapi: auth
Milestone
Description
Description
For our app, in order to login, we use Phone Authentication. When testing on any OS below iOS16 in the iOS Simulator, it works perfectly for both test numbers and live phone numbers.
But now with iOS16, it throws the following error:
"Error Domain=FIRAuthErrorDomain Code=17048 "Token mismatch" UserInfo={NSLocalizedDescription=Token mismatch, FIRAuthErrorUserInfoNameKey=INVALID_APP_CREDENTIAL}"
I've tried it in both Sandbox, Production & Unknown APNs environments, but nothing fixes it.
Reproducing the issue
Submit a number to Phone Authentication
finalPhone = "+" + "12345678910"
PhoneAuthProvider.provider(auth: Auth.auth()).verifyPhoneNumber(finalPhone, uiDelegate: nil) {
verificationID, error in
if let error = error {
print(error)
completion(false)
return
} else {
UserDefaults.standard.set(verificationID, forKey: "authVerificationID")
completion(true)
}
}
Firebase SDK Version
master
Xcode Version
14.0
Installation Method
Swift Package Manager
Firebase Product(s)
Authentication
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
tomas-petrovcin, nidegen, 0x3dev, andrewpang, fheinz7 and 2 more
Metadata
Metadata
Assignees
Labels
Xcode 14 - iOS 16Issues and PRs related to Xcode 14, iOS 16, and associated OSesIssues and PRs related to Xcode 14, iOS 16, and associated OSesapi: auth