feat: Update session navigation and enhance error handling in data services
This commit is contained in:
@@ -52,7 +52,7 @@ class _SessionListenerState extends State<SessionListener> {
|
||||
// Only show dialog if user was previously authenticated (session expired)
|
||||
if (_isInitialState) {
|
||||
_isInitialState = false;
|
||||
Modular.to.toGetStartedPage();
|
||||
Modular.to.toClientGetStartedPage();
|
||||
} else if (!_sessionExpiredDialogShown) {
|
||||
_sessionExpiredDialogShown = true;
|
||||
_showSessionExpiredDialog();
|
||||
@@ -77,7 +77,7 @@ class _SessionListenerState extends State<SessionListener> {
|
||||
_showSessionErrorDialog(state.errorMessage ?? 'Session error occurred');
|
||||
} else {
|
||||
_isInitialState = false;
|
||||
Modular.to.toInitialPage();
|
||||
Modular.to.toClientGetStartedPage();
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -149,7 +149,7 @@ class _SessionListenerState extends State<SessionListener> {
|
||||
DataConnectService.instance.handleSignOut();
|
||||
|
||||
// Navigate to authentication
|
||||
Modular.to.toInitialPage();
|
||||
Modular.to.toClientGetStartedPage();
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user