Skip to content

Commit

Permalink
Fixed legacy token authentication issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Mar 1, 2022
1 parent 59f62ef commit 917f20e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Firebase Arduino Client Library for ESP8266 and ESP32


Google's Firebase Arduino Client Library for ESP8266 and ESP32 v3.1.3
Google's Firebase Arduino Client Library for ESP8266 and ESP32 v3.1.4


This library supports ESP8266 and ESP32 MCU from Espressif. The following are platforms in which the libraries are also available (RTDB only).
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Firebase Arduino Client Library for ESP8266 and ESP32",
"version": "3.1.3",
"version": "3.1.4",
"keywords": "communication, REST, esp32, esp8266, arduino",
"description": "The library supports Firebase products e.g. Realtime database, Cloud Firestore database, Firebase Storage and Google Cloud Storage, Cloud Functions for Firebase and Cloud Messaging. The library also supported other Arduino devices using Clients interfaces e.g. WiFiClient, EthernetClient, and GSMClient.",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=Firebase Arduino Client Library for ESP8266 and ESP32

version=3.1.3
version=3.1.4

author=Mobizt

Expand Down
10 changes: 4 additions & 6 deletions src/Firebase_ESP_Client.h
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
#ifndef FIREBASE_CLIENT_VERSION
#define FIREBASE_CLIENT_VERSION "3.1.3"
#define FIREBASE_CLIENT_VERSION "3.1.4"
#endif

/**
* Google's Firebase ESP Client Main class, Firebase_ESP_Client.h v3.1.3
* Google's Firebase ESP Client Main class, Firebase_ESP_Client.h v3.1.4
*
* This library supports Espressif ESP8266 and ESP32 MCUs
*
* Created February 28, 2022
* Created March 1, 2022
*
* Updates:
* - Fixed multiPathStream task execution issue #256.
* - Fixed Arduino IDE compiler waring.
* - Update printf functions.
* - Fixed legacy token authentication issue.
*
*
* This work is a part of Firebase ESP Client library
Expand Down
2 changes: 1 addition & 1 deletion src/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Firebase Arduino Client Library for ESP8266 and ESP32


Google's Firebase Arduino Client Library for ESP8266 and ESP32 v3.1.3
Google's Firebase Arduino Client Library for ESP8266 and ESP32 v3.1.4


The default filessystem used in the library is flash and SD.
Expand Down
10 changes: 8 additions & 2 deletions src/session/FB_Session.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Google's Firebase Data class, FB_Session.cpp version 1.2.18
* Google's Firebase Data class, FB_Session.cpp version 1.2.19
*
* This library supports Espressif ESP8266 and ESP32
*
* Created February 28, 2022
* Created March 1, 2022
*
* This work is a part of Firebase ESP Client library
* Copyright (c) 2022 K. Suwatchai (Mobizt)
Expand Down Expand Up @@ -1003,6 +1003,12 @@ void FirebaseData::setCert(const char *ca)

bool FirebaseData::tokenReady()
{
if (Signer.getCfg())
{
if (Signer.getCfg()->signer.test_mode || (Signer.getCfg()->signer.tokens.token_type == token_type_legacy_token && Signer.getCfg()->signer.tokens.status == token_status_ready))
return true;
}

if (Signer.isExpired())
{
closeSession();
Expand Down
4 changes: 2 additions & 2 deletions src/session/FB_Session.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Google's Firebase Data class, FB_Session.h version 1.2.18
* Google's Firebase Data class, FB_Session.h version 1.2.19
*
* This library supports Espressif ESP8266 and ESP32
*
* Created February 28, 2022
* Created March 1, 2022
*
* This work is a part of Firebase ESP Client library
* Copyright (c) 2022 K. Suwatchai (Mobizt)
Expand Down

0 comments on commit 917f20e

Please sign in to comment.