This commit is contained in:
Leon Bösche
2026-01-08 22:09:52 +01:00
parent b18a171ac2
commit 5caf3f6b62

View File

@@ -255,16 +255,18 @@ class AuthBloc extends Bloc<AuthEvent, AuthState> {
) async {
// Check if session is active from persistent storage
final sessionState = sessionBloc.state;
if (sessionState is SessionActive) {
// Session already active - emit authenticated state with minimal info
// The full user info will be fetched when needed
emit(AuthAuthenticated(
token: sessionState.token,
userId: '',
username: '',
email: '',
));
emit(
AuthAuthenticated(
token: sessionState.token,
userId: '',
username: '',
email: '',
),
);
} else {
emit(AuthUnauthenticated());
}