Comments on: ESP32/ESP8266: Firebase Authentication (Email and Password) https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 08 May 2026 21:07:50 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: Sara Santos https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/#comment-1164397 Wed, 25 Feb 2026 17:01:31 +0000 https://randomnerdtutorials.com/?p=107356#comment-1164397 In reply to tom.

Hi.
Yes. That’s right.
They changed the interface a bit. So, now you need to add a web app for it to create an API key.
Regards,
Sara

]]>
By: tom https://randomnerdtutorials.com/esp32-esp8266-firebase-authentication/#comment-1164053 Tue, 24 Feb 2026 04:53:41 +0000 https://randomnerdtutorials.com/?p=107356#comment-1164053 Greetings from 2026. Minor update to step 3 getting the API key.Once your on the project settings page the API key is not automatically generated. You have to select ‘add app’ and chose between ios android or web. I chose web, it asked me a few more questions then generated the API key. loaded the example code onto an ESP32 and it works

]]>
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()

]]>