Skip to content

Auth sends unverified requests with release AppCheck provider #15346

@Tarasovych

Description

@Tarasovych

Description

Having this code

class SimpleAppCheckProviderFactory: NSObject, AppCheckProviderFactory {
  func createProvider(with app: FirebaseApp) -> AppCheckProvider? {
    return AppAttestProvider(app: app)
  }
}

class AppDelegate: NSObject, UIApplicationDelegate, UNUserNotificationCenterDelegate, MessagingDelegate {
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
//...
#if DEBUG
            let providerFactory = AppCheckDebugProviderFactory()
#else
            let providerFactory = SimpleAppCheckProviderFactory()
#endif
            AppCheck.setAppCheckProviderFactory(providerFactory)
            FirebaseApp.configure()
    }

I can see 100% of unverified requests in AppCheck console for "Google Identity for iOS":

Image

How it is possible?
When testing the app in DEBUG mode, there is no such issue

Image

Reproducing the issue

No response

Firebase SDK Version

11.14

Xcode Version

16.2

Installation Method

Swift Package Manager

Firebase Product(s)

App Check

Targeted Platforms

iOS

Relevant Log Output

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
    {
      "identity" : "firebase-ios-sdk",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/firebase/firebase-ios-sdk",
      "state" : {
        "revision" : "45d327fcbe7793747295346c2209ad419bdead74",
        "version" : "11.14.0"
      }
    }

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: appcheckcontact-support-insteadPlease contact Firebase Support where you can share private info about your project and get help.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions