Skip to content

Custom Auth Example Issue #282

@meganveldhuis

Description

@meganveldhuis

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

No one assigned

    Labels

    library bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions