diff --git a/apps/mobile_app/lib/core/init_app.dart b/apps/mobile_app/lib/core/init_app.dart index 7055fa2a..92a9437a 100644 --- a/apps/mobile_app/lib/core/init_app.dart +++ b/apps/mobile_app/lib/core/init_app.dart @@ -30,7 +30,9 @@ Future initApp(EnvironmentEnum env) async { await configureDependencies( QuestiaEnvConfig(), log: env.isDevelopment || kDebugMode, - onTokenExpired: () => appRouter.go(AppRoutes.scaTreezor), + onTokenExpired: () => appRouter.go( + AppRoutes.legacyLogin, + ), //change to payments app to AppRoutes.scaTreezor onUnauthorized: () async { final currentLocation = appRouter.routerDelegate.currentConfiguration.uri.path; diff --git a/apps/mobile_app/lib/save_family_app.dart b/apps/mobile_app/lib/save_family_app.dart index 6878dfa4..b792fb4e 100644 --- a/apps/mobile_app/lib/save_family_app.dart +++ b/apps/mobile_app/lib/save_family_app.dart @@ -34,7 +34,9 @@ class SaveFamilyAppState extends ConsumerState walletHeartbeat = WalletHeartbeatService( repository: ref.read(treezorRepositoryProvider), sessionLocal: SessionLocalDatasourceImpl(), - onError: () => appRouter.go(AppRoutes.scaTreezor), + onError: () => appRouter.go( + AppRoutes.legacyLogin, + ), //change to payments app to AppRoutes.scaTreezor ); legacyHeartbeat = LegacyHeartbeatService( repository: GetIt.I(),