Event task: authTask, msg: authenticating, code: 7 #94
-
I am using the example code `/**
#include <Arduino.h> #include <FirebaseClient.h> #define WIFI_SSID "" // The API key can be obtained from Firebase console > Project Overview > Project settings. // User Email and password that already registerd or added in your project. void asyncCB(AsyncResult &aResult); void printResult(AsyncResult &aResult); bool verifyUser(const String &apiKey, const String &email, const String &password); DefaultNetwork network; // initilize with boolean parameter to enable/disable network reconnection UserAuth user_auth(API_KEY, USER_EMAIL, USER_PASSWORD, 3000 /* expire period in seconds (<3600) */); FirebaseApp app; #if defined(ESP32) || defined(ESP8266) || defined(ARDUINO_RASPBERRY_PI_PICO_W) using AsyncClient = AsyncClientClass; AsyncClient aClient(ssl_client, getNetwork(network)); bool taskComplete = false; void setup()
#if defined(ESP32) || defined(ESP8266) || defined(PICO_RP2040)
} void loop()
} void asyncCB(AsyncResult &aResult)
} void printResult(AsyncResult &aResult)
} bool verifyUser(const String &apiKey, const String &email, const String &password)
}` And getting the error
could you please help me in this ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
As I replied on the old library repo, the user credentials are not valid. |
Beta Was this translation helpful? Give feedback.
-
Please make sure you setup the authentication service correctly. https://github.com/mobizt/FirebaseClient?tab=readme-ov-file#authentication-getting-started |
Beta Was this translation helpful? Give feedback.
-
I meant you should create a new Firebase project not Arduino project. |
Beta Was this translation helpful? Give feedback.
You should post in the community forum or contact google for help.
See how to verify the user.
https://github.com/mobizt/FirebaseClient/blob/main/examples/App/AppInitialization/Async/Callback/UserAuth/UserAuth.ino