mirror-immich/mobile/lib/routing
Santo Shakil b031548791
fix(mobile): don't block app open on slow validateAccessToken (#28405)
* fix(mobile): don't block app open on slow validateAccessToken

AuthGuard.onNavigation was async so auto_route awaited the body through validateAccessToken's OS timeout. now it's sync and the validate runs in bg. kicks to login on 401.

* fix(mobile): handle re-login race in AuthGuard validate

if user logs out + logs back in during a slow validate, the old 401 was logging them out again. now we check the token hasn't changed before redirecting, and dedupe in-flight calls.

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
2026-05-13 11:52:43 -05:00
..
app_navigation_observer.dart refactor: yeet old timeline (#27666) 2026-04-15 23:00:27 +05:30
auth_guard.dart fix(mobile): don't block app open on slow validateAccessToken (#28405) 2026-05-13 11:52:43 -05:00
custom_transition_builders.dart chore: bump line length to 120 (#20191) 2025-07-25 02:37:22 +00:00
duplicate_guard.dart chore(mobile): add `debugPrint` lint rule (#21872) 2025-09-12 18:56:00 -04:00
locked_guard.dart fix: mobile unawaited_futures lint (#21661) 2025-10-27 09:32:52 -05:00
router.dart feat: recently added assets page (#28272) 2026-05-11 21:35:10 +00:00
router.gr.dart feat: recently added assets page (#28272) 2026-05-11 21:35:10 +00:00