-
-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
library bugSomething isn't workingSomething isn't working
Description
Describe the bug
The example code for the Custom Authentication fails. It prints an error stating the private key signing failed, even though the private key and credentials are copied correctly. Here is the printed error:
Error task: task_2177, msg: JWT, private key signing failed, code: -111
To Reproduce
Use example code from CustomAuth example, connect to a firebase project
PlatformIO.ini :
[env:esp32-s3-devkitc-1]
platform = espressif32@6.6.0
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200
board_build.filesystem = littlefs
build_flags =
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
lib_deps =
mobizt/FirebaseClient@^2.1.6
Expected behavior
Key signing is successful and connects to the Firebase.
IDE and its version:
- PlatformIO espressif32@6.6.0
- Using an ESP32-S3 board
- FirebaseClient@^2.1.6
Found Solution
The solution I found was to simply add the line #define ENABLE_SERVICE_AUTH
This allowed me to successfully sign the key, and connect to the firebase.
Metadata
Metadata
Assignees
Labels
library bugSomething isn't workingSomething isn't working