Horváth Gergely e620f3e564 Add force account-switch and iCloud recovery
Introduce forced account-switch handling and improve token selection/recovery logic.

- WatchConnectivityManager & ReauthRequiredView: parse sentAtMs robustly and compute a shouldForceAccountSwitch flag when an incoming token is for a different account; pass forceAccountSwitch to TokenManager.saveToken and include it in logs.
- TokenManager: add localTokenFromKeychainAndFile helper, prefer the active account when selecting a local token, and refine loadToken to prefer active-account tokens but fall back to the freshest available. saveToken now accepts forceAccountSwitch and will persist a token even if it switches accounts when requested. Adjust iCloud handling to skip iCloud token only if a local active-account token exists; improve diagnostic logging.
- WatchToken: enhance isNewer comparison to consider effectiveUpdatedAt and tokenVersion before falling back to expiryDate.
- HomeScreen (phone): import watch_sync_helper and run a secondary iCloud recovery pass on startup (with a short delay) to apply a fresher iCloud token to the app state if needed.

These changes aim to make cross-device token sync more robust, correctly handle account switches triggered from the watch, and recover stale auth state from iCloud on app startup.
2026-02-27 23:23:56 +01:00
2025-09-15 12:21:40 +02:00
2025-02-10 22:22:45 +01:00
2025-10-12 15:50:53 +02:00
2025-02-10 22:22:45 +01:00
2025-09-08 20:50:41 +02:00
2025-10-26 09:14:10 +01:00
2025-08-24 16:57:08 +02:00
2025-02-10 22:22:45 +01:00
2025-02-10 22:22:45 +01:00

Firka

HU Magyar EN English

Crowdin

The project

Firka is an alternative client for [an application to be named]. The app's goal is to be a modern user friendly app for the [to be named] system.

Contribution guide

Description
No description provided
Readme 59 MiB
Languages
Dart 60.7%
Swift 35.4%
Kotlin 3.2%
Shell 0.4%
PowerShell 0.1%
Other 0.1%