I have this issue open on github for 10 days: https://github.com/GoogleCloudPlatform/iot-smart-home-cloud/issues/20
I can see the devices registered in the firestore(look photo below), but they do not appear on the mobile screen or in the Angular/web application. In the latter case, the devices are correctly registered in the GCP/Cloud Iot Core Api/PubSub.
I already registered 1 device using the tutorial below, which also does not appear http://nilhcem.com/iot/cloud-iot-core-with-the-esp32-and-arduino
How to solve?
Even though the error message in the screenshots mentions an issue with the authentication, the real error message was the "Device Not Found".
The issue was that the code was looking for a specific registry-device that didn't exist due to a mismatch in the registry name.
For reference, the configuration of the iot settings in firebase is mentioned in the step 3 of the quickstart:
Add your Cloud IoT Core project info as Firebase config environment variables:
$ firebase functions:config:set \ cloudiot.region=$REGION \ cloudiot.registry=$REGISTRY