FirebaseApp.configure()
#if DEBUG
Auth.auth().useEmulator(withHost: "localhost", port: 9099)
Functions.functions(region: "us-east4").useEmulator(withHost: "localhost", port: 5001)
let settings = Firestore.firestore().settings
settings.host = "localhost:8080"
settings.isPersistenceEnabled = false
settings.isSSLEnabled = false
Firestore.firestore().settings = settings
#endif
The Auth and Firestore emulators work fine. The local onCreate trigger cloud function also runs when the User is created. When I call my search function (callable function, down below), I get an "Unauthenticated" error. The "result" variable was nil
When I connected to GCP Cloud Functions, everything worked.
private lazy var functions = Functions.functions(region: "us-east4")
self.functions.httpsCallable("search").call(["query": searchText]) { (result, error) in ........
Not sure if anyone else has seen this issue but any advice would be greatly appreciated!
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/3f9a2a65-abf1-4adf-950b-e74f2809a58an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/119e17bc-2445-4d6c-ad58-bcb5f46c4c86n%40googlegroups.com.