fix(interceptor): disable 500 token-expired handler in legacy mode

This commit is contained in:
2026-04-17 03:05:59 +02:00
parent ddc5086b3b
commit 238c15888b

View File

@@ -39,7 +39,7 @@ Future<void> initApp(EnvironmentEnum env) async {
log: env.isDevelopment || kDebugMode,
onTokenExpired: isPaymentMode
? () => appRouter.go(AppRoutes.scaTreezor)
: () => appRouter.go(AppRoutes.legacyLogin),
: null,
onUnauthorized: () async {
final currentLocation =
appRouter.routerDelegate.currentConfiguration.uri.path;