firebase / firebase-tools

The Firebase Command Line Tools
MIT License
3.97k stars 916 forks source link

iOS Emulator throwing Auth errors on physical device #5455

Open k-vyn opened 1 year ago

k-vyn commented 1 year ago

[REQUIRED] Environment info

v11.21.0

firebase-tools:

macOS

Platform:

macOS/Swift

[REQUIRED] Test case

        let settings = Firestore.firestore().settings
        settings.host = "192.168.68.109:8080"
        settings.isPersistenceEnabled = false
        settings.isSSLEnabled = false
        Firestore.firestore().settings = settings

        realtime = Database.database(url: "http://192.168.68.109:9000/?ns=_project_").reference()
        Auth.auth().useEmulator(withHost: "192.168.68.109", port: 9099)
        Storage.storage().useEmulator(withHost: "192.168.68.109", port: 9199)
        Functions.functions().useEmulator(withHost: "192.168.68.109", port: 5001)

[REQUIRED] Steps to reproduce

[REQUIRED] Expected behavior

[REQUIRED] Actual behavior

10.4.0 - [FirebaseDatabase][I-RDB034018] Authentication failed: invalid_token (Unsupported jwt algorithm: none)

FWIW The authentation server is actually working just fine, but it clogs up the log after a few minutes.

google-oss-bot commented 1 year ago

This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

paulb777 commented 1 year ago

Reassigning to @maneesht - the RTDB Apple SDK lead.