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() {
2525 override fun onDataChange (data : DataSnapshot ) {
2626 when (data.getValue(Boolean ::class .java)) {
2727 true -> onAvailable(null )
28- false -> onLost(null )
28+ else -> onLost(null )
2929 }
3030 }
3131
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ class FirebaseAuth constructor(val app: FirebaseApp) : InternalAuthProvider {
243243 val source = TaskCompletionSource <GetTokenResult >()
244244 val user = user ? : return Tasks .forException(FirebaseNoSignedInUserException (" Please sign in before trying to get a token." ))
245245
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() ) {
247247// Log.i("FirebaseAuth", "returning existing token for user ${user.uid} from getAccessToken")
248248 return Tasks .forResult(GetTokenResult (user.idToken, user.claims))
249249 }
You can’t perform that action at this time.
0 commit comments