Skip to content

Commit 5e76d6a

Browse files
committed
refactor(auth): improve role-based auth
- Clarify role handling logic - Improve readability
1 parent 1376448 commit 5e76d6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/app/bloc/app_bloc.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class AppBloc extends Bloc<AppEvent, AppState> {
5656
status = AppStatus.authenticated;
5757
// ignore: no_default_cases
5858
default: // Fallback for any other roles not explicitly handled
59-
status = AppStatus.unauthenticated; // Treat other roles as unauthenticated for dashboard
59+
status = AppStatus
60+
.unauthenticated; // Treat other roles as unauthenticated for dashboard
6061
}
6162

6263
// Emit user and status update

0 commit comments

Comments
 (0)