Replies: 2 comments 1 reply
-
Thanks for reporting this issue. Please update the library to v1.3.6. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hello. I am currently working with the legacy Firebase-ESP-Client library found at https://github.com/mobizt/Firebase-ESP-Client. My goal is to obtain the Refresh Token and store it in the device's preferences to achieve persistent authentication. Could you please advise on how to retrieve this token? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm migrating from the deprecated library Firebase-ESP-Client to this new one. In the old library when it used only a refresh token when an empty ID Token a refresh of the token was forced immediately:
https://github.com/mobizt/Firebase-ESP-Client/blob/f17ea76ae870d6e02290504b1bd7e9599a3ca5cb/examples/Authentications/SignInWithRefreshIDToken/SignInWithRefreshIDToken.ino#L128-L130
In the new one there is this comment:
https://github.com/mobizt/FirebaseClient/blob/852e3cc537651d3deda27c54ec7388080f2a2032/examples/App/AppInitialization/Async/Callback/TokenAuth/IDToken/IDToken.ino#L25C4-L25C129
I understand from that comment that there should be a behavior similar to the old library and obtain a refresh of the token immediately, but when initializing using the example: https://github.com/mobizt/FirebaseClient/blob/main/examples/App/AppInitialization/Async/Callback/TokenAuth/IDToken/IDToken.ino#L25C4-L25C129
no log is obtained until the expiration time is met. Shouldn't it be refreshed immediately?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions