You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I want to ask about getting Token status into a string, I want to check everytime before I update database, if the token is being refreshed or not, I know it's in the TokenHelper.h but don't know how to get that info into a string.
Highly appreciated.
The text was updated successfully, but these errors were encountered:
The current auth token can be obtained from Firebase.getToken().
You can check its status with.
Firebase.authenticated() <- returns Firebase authentication status Firebase.isTokenExpired() <- returns token expiry status
Firebase.ready() <- returns authentication status AND token expiry status AND network status.
<FirebaseData>.httpConnected() returns server connecting state in almost present time.
Normally, library will refresh the token 5 minutes before it expires (60 - 5 or every 55 minutes). You can set the token refresh time earlier than that default value, e.g., refresh in 10 minutes since it created with.
config.signer.preRefreshSeconds = 3600 - 10 * 60;
Or you want to refresh token immediately with. Firebase.refreshToken(&config);
Hi.
I want to ask about getting Token status into a string, I want to check everytime before I update database, if the token is being refreshed or not, I know it's in the TokenHelper.h but don't know how to get that info into a string.
Highly appreciated.
The text was updated successfully, but these errors were encountered: