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

View File

@@ -259,12 +259,14 @@ class AuthBloc extends Bloc<AuthEvent, AuthState> {
if (sessionState is SessionActive) { if (sessionState is SessionActive) {
// Session already active - emit authenticated state with minimal info // Session already active - emit authenticated state with minimal info
// The full user info will be fetched when needed // The full user info will be fetched when needed
emit(AuthAuthenticated( emit(
token: sessionState.token, AuthAuthenticated(
userId: '', token: sessionState.token,
username: '', userId: '',
email: '', username: '',
)); email: '',
),
);
} else { } else {
emit(AuthUnauthenticated()); emit(AuthUnauthenticated());
} }