resetting the session access token after releasing the current session, fixes missing session sign out error

- the sign out step was invaliding the in flight access token which causes the global error handler to trigger an extra sign out
This commit is contained in:
Adam Brown 2021-11-05 16:48:58 +00:00
parent 2b58c0e5ab
commit 9b4cd3c3c4

View file

@ -55,15 +55,15 @@ internal class CleanupSession @Inject constructor(
val cryptoRealmCount = Realm.getGlobalInstanceCount(realmCryptoConfiguration)
Timber.d("Realm instance ($sessionRealmCount - $cryptoRealmCount)")
Timber.d("Cleanup: delete session params...")
sessionParamsStore.delete(sessionId)
Timber.d("Cleanup: cancel pending works...")
workManagerProvider.cancelAllWorks()
Timber.d("Cleanup: release session...")
sessionManager.releaseSession(sessionId)
Timber.d("Cleanup: delete session params...")
sessionParamsStore.delete(sessionId)
Timber.d("Cleanup: clear session data...")
clearSessionDataTask.execute(Unit)