This commit is contained in:
Leon Bösche
2026-01-08 22:21:24 +01:00
parent bd5c424786
commit b99898815a

View File

@@ -17,7 +17,10 @@ class SessionBloc extends Bloc<SessionEvent, SessionState> {
on<SessionRestored>(_onSessionRestored); on<SessionRestored>(_onSessionRestored);
} }
void _onSessionStarted(SessionStarted event, Emitter<SessionState> emit) async { void _onSessionStarted(
SessionStarted event,
Emitter<SessionState> emit,
) async {
final expiresAt = DateTime.now().add( final expiresAt = DateTime.now().add(
const Duration(minutes: 15), const Duration(minutes: 15),
); // Match Go ); // Match Go
@@ -37,7 +40,10 @@ class SessionBloc extends Bloc<SessionEvent, SessionState> {
emit(SessionExpiredState()); emit(SessionExpiredState());
} }
void _onSessionRefreshed(SessionRefreshed event, Emitter<SessionState> emit) async { void _onSessionRefreshed(
SessionRefreshed event,
Emitter<SessionState> emit,
) async {
final expiresAt = DateTime.now().add(const Duration(minutes: 15)); final expiresAt = DateTime.now().add(const Duration(minutes: 15));
// Update stored token // Update stored token