It seems some 'login' sessions have not been properly cleared from last year, and the app generally doesn't have any handling for login expiration (yet) - might as well add it:
Either:
Logout users (locally) when their token is no longer valid (according to ValidUntilDateTimeUtc...) - this should be checked on app resume/whenever the home screen is loaded. (Preferred)
Or: Logout users when the call to PrivateMessages fails with a 401 (Quick workaround)
It seems some 'login' sessions have not been properly cleared from last year, and the app generally doesn't have any handling for login expiration (yet) - might as well add it:
Either: