Comments on: ESP32/ESP8266: Firebase Authentication (Email and Password) https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 02 Jul 2025 10:43:46 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Hansie https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/#comment-972673 Wed, 16 Oct 2024 19:13:05 +0000 https://randomnerdtutorials.com/?p=107356#comment-972673 Good day I am trying to read data from realtime Database in firebase but my code gives permission denied.I am able to authenticate the esp32 and sign it in to firebase and post data to the database my problem is when I try to read data from the database.This is the code block that is supposed to retreive the data.

I want to retreive the depth from the database .

Uid
Devices
device ID
-depth

void getValues()
{
if (Firebase.ready())
{
if (Firebase.RTDB.getString(&fbdo,uid +”/Devices/” + deviceID + “/depth”))
{
if (fbdo.dataType() == “string”)
{
depth= fbdo.stringData();
Serial.println(depth);
}
}
else
{
Serial.println(fbdo.errorReason());
}

}
else
{
Serial.println(fbdo.errorReason());
}
}
Capture

]]>
By: Hansie https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/#comment-972646 Wed, 16 Oct 2024 17:10:26 +0000 https://randomnerdtutorials.com/?p=107356#comment-972646 In reply to Sara Santos.

Have you made the totorial on retrieving the data from database after logging in with email and password

]]>
By: Hansie https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/#comment-972631 Wed, 16 Oct 2024 15:35:27 +0000 https://randomnerdtutorials.com/?p=107356#comment-972631 Thanks it workes great can you please help with retreiving data from the realtime Database with the authentication?

]]>
By: Lawrence https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/#comment-962395 Sat, 28 Sep 2024 13:27:17 +0000 https://randomnerdtutorials.com/?p=107356#comment-962395 Anyone who’ve done this using SIM800 or similar?

]]>
By: alessandro masonal https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/#comment-941656 Thu, 25 Jul 2024 08:38:40 +0000 https://randomnerdtutorials.com/?p=107356#comment-941656 Hi, I encountered a weird error…. it logs in normally for the auth but after a while the connection gets refused by firebase. I thought the reason being the token’s expiration, but it keeps saying that the tokes aren’t expired yet.
Maybe a bug with the library?

]]>
By: Lawrence https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/#comment-919349 Wed, 29 May 2024 15:01:23 +0000 https://randomnerdtutorials.com/?p=107356#comment-919349 How can we achieve this with any sim module?

]]>
By: lahu https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/#comment-862080 Sat, 23 Sep 2023 09:43:20 +0000 https://randomnerdtutorials.com/?p=107356#comment-862080 Instead of filling in the API_KEY statically, I can set it dynamically so that it can be changed via the app or web, for example.
Can you suggest me how to do it?

]]>
By: Ajith https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/#comment-790518 Wed, 12 Oct 2022 12:00:45 +0000 https://randomnerdtutorials.com/?p=107356#comment-790518 In reply to Sara Santos.

Hi Sara,
Thank you for your reply. After a long search finally found a solution and tested also(after 10 days still running with no issue)
loop()
if(Firebase.isTokenExpired())
firebase.ready()

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/#comment-784726 Tue, 20 Sep 2022 09:44:33 +0000 https://randomnerdtutorials.com/?p=107356#comment-784726 In reply to Ajith.

Hi.
Add something like this in the loop():
if firebase.ready()
return
Regards,
Sara

]]>
By: Ajith https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/#comment-784709 Tue, 20 Sep 2022 08:32:36 +0000 https://randomnerdtutorials.com/?p=107356#comment-784709 In reply to Sara Santos.

Hi Sara,
After a long research I found a solution, but I facing error can you plz help with that.
https://github.com/mobizt/Firebase-ESP-Client/blob/60680080caf053db16106f63b20df1163324527b/examples/RTDB/Basic/Basic.ino#L144-L149
https://create.arduino.cc/projecthub/embeddedlab786/iot-and-manual-switch-control-home-appliances-using-firebase-c90418

]]>