@thzero/library_client_firebase 0.17.22 → 0.17.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/service/index.js +1 -1
package/package.json
CHANGED
package/service/index.js
CHANGED
|
@@ -167,7 +167,7 @@ class FirebaseAuthService extends UserAuthService {
|
|
|
167
167
|
|
|
168
168
|
async refreshTokenExpiration(correlationId, tokenResult, user) {
|
|
169
169
|
const expired = LibraryMomentUtility.getDateParse(tokenResult.expirationTime);
|
|
170
|
-
const now =
|
|
170
|
+
const now = LibraryMomentUtility.getDate();
|
|
171
171
|
const diff = expired.diff(now);
|
|
172
172
|
const min = 5 * 60 * 1000;
|
|
173
173
|
if (diff <= min) {
|