[components] Close https://github.com/mozilla-mobile/android-components/issues/12766...
commitde7ad9a95240dbe81bc595e4c05b20913c009b3c
authorRoger Yang <royang@mozilla.com>
Fri, 9 Sep 2022 18:53:45 +0000 (9 14:53 -0400)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 12 Sep 2022 11:53:21 +0000 (12 11:53 +0000)
treefcbec88e601fede83462643c0af7d12884667727
parent2b5140d6f393449dffdfed825ab4fd8fa737e075
[components] Close https://github.com/mozilla-mobile/android-components/issues/12766: Use seconds as unit when checking sync token expiry

This issue relates to the increased number of re-authorization we perform for
the sync token.  Previously, we've been comparing sync token expiry (in seconds)
with system time (in milliseconds), which is a mistake.

We only uncovered this issue with more tab syncing added that we are checking
the sync token every time we sync.
mobile/android/android-components/components/service/firefox-accounts/src/main/java/mozilla/components/service/fxa/SyncAuthInfoCache.kt
mobile/android/android-components/components/service/firefox-accounts/src/test/java/mozilla/components/service/fxa/SyncAuthInfoCacheTest.kt