• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Issues login into firebase

Q&A Forum › Category: ESP32 › Issues login into firebase
0 Vote Up Vote Down
Roger Neumair asked 3 years ago

Hello Sara and Rui,
I just bought the Firebase Web App eBook and ran into an issue already on the first project 3.2 Authentication:
This is what I get in the serial monitor:
Connecting to WiFi …192.168.178.40
Token info: type = id token, status = on request
[ 1173][E][WiFiClientSecure.cpp:383] setSocketOption(): 1006 : 9
Token info: type = id token, status = error
Token error: code: 400, message: PASSWORD_LOGIN_DISABLED
Token info: type = id token, status = error
Token error: code: 400, message: bad request
Getting User UID
…………………………………..
I rechecked that I set the RTDB rules correctly as described in page 37.
{
  “rules”: {
    “UsersData”: {
      “$uid”: {
        “.read”: “$uid === auth.uid”,
        “.write”: “$uid === auth.uid”
      }
    }
  }
}
An email/password user exists and is enabled
I also replaced API Key, network credentials and email/pwd in the ESP32 source code
Any idea where to look?
Best regards,
Roger
 

Question Tags: Authentication, ESP32, Firebase
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Can you check your ESP32 boards installation?
Go to Tools > Board > Boards Manager > ESP32.
Use version 2.0.1.
Then, compile and upload the code again.
 
However, it seems a problem with password authentication:
“Token error: code: 400, message: PASSWORD_LOGIN_DISABLED”
 
Double-check all your credentials. It seems you didn’t enable the user login with email and password on the right project… maybe you have more than one project created and you’re not using the proper settings?
 
 
Regards,
Sara
 

0 Vote Up Vote Down
Roger Neumair answered 3 years ago

Hi Sara,
Thanks for your quick reply.The hint with the other project unfolded the problem.
I am using a credentials.h file, holding all credentials, which I include in main.cpp.
In VS-Code I edited the credentials.h of another project.
Best regards,
Roger
 
 

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Ok.
Great. I’m glad you found the issue.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.