File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class ConnectivityManager private constructor() {
25
25
override fun onDataChange (data : DataSnapshot ) {
26
26
when (data.getValue(Boolean ::class .java)) {
27
27
true -> onAvailable(null )
28
- false -> onLost(null )
28
+ else -> onLost(null )
29
29
}
30
30
}
31
31
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ class FirebaseAuth constructor(val app: FirebaseApp) : InternalAuthProvider {
243
243
val source = TaskCompletionSource <GetTokenResult >()
244
244
val user = user ? : return Tasks .forException(FirebaseNoSignedInUserException (" Please sign in before trying to get a token." ))
245
245
246
- if (! forceRefresh && user.createdAt + user.expiresIn - 5 * 60 > System .currentTimeMillis() / 1000 ) {
246
+ if (! forceRefresh && user.createdAt + user.expiresIn* 1000 - 5 * 60 * 1000 > System .currentTimeMillis() ) {
247
247
// Log.i("FirebaseAuth", "returning existing token for user ${user.uid} from getAccessToken")
248
248
return Tasks .forResult(GetTokenResult (user.idToken, user.claims))
249
249
}
You can’t perform that action at this time.
0 commit comments